I have a airflow DAG "example_ml.py" which has a task "train_ml_model" and this task is calling/running a python script "training.py".
-Dags/example_ml.py -Dags/training.py
When I run Dag, it is failing to import modules required for training script to execute.

Code snippet for DAG task:
train_model = PythonOperator(
task_id='train_model',
python_callable=training,
dag = dag
)
PS: I'm using k8s cluster. Airflow is running in k8s cluster, and executor is set to kubernetesExecutor. So when each DAG is triggered a new pod gets assigned to complete the task.