Complete the code to import the Airflow DAG class.
from airflow.models import [1]
The DAG class is imported from airflow.models to define workflows.
Complete the code to create a DAG object with id 'test_dag'.
dag = [1](dag_id='test_dag', start_date=datetime(2024, 1, 1))
The DAG object is created by calling DAG() with parameters like dag_id and start_date.
Fix the error in the test code to check if the DAG has the correct id.
assert dag.[1] == 'test_dag'
The DAG's unique identifier is accessed via the dag_id attribute.
Fill both blanks to create a task using PythonOperator with a simple callable.
task = PythonOperator(task_id='print_hello', python_callable=[1], dag=[2])
The python_callable parameter expects a function like print_hello, and dag is the DAG object.
Fill all three blanks to assert the task has the correct task_id and belongs to the DAG.
assert task.[1] == 'print_hello' assert task.[2] == [3]
Task's task_id attribute holds its id, and dag attribute links to the DAG object.
