code: def create_dummy_dag(dag_maker):
      """Create a `DAG` with a single `EmptyOperator` task.
  
      DagRun and DagModel is also created.
  
      Apart from the already existing arguments, any other argument in kwargs
      is passed to the DAG and not to the EmptyOperator task.
  
      If you have an argument that you want to pass to the EmptyOperator that
      is not here, please use `default_args` so that the DAG will pass it to the
      Task::
  
          dag, task = create_dummy_dag(default_args={"start_date": timezone.datetime(2016, 1, 1)})
  
      You cannot be able to alter the created DagRun or DagModel, use `dag_maker` fixture instead.
      """
      from airflow.operators.empty import EmptyOperator
      from airflow.utils.types import DagRunType
  
      def create_dag(
          dag_id="dag",
          task_id="op1",
          max_active_tis_per_dag=16,
          max_active_tis_per_dagrun=None,
          pool="default_pool",
          executor_config=None,
          trigger_rule="all_done",
          on_success_callback=None,
          on_execute_callback=None,
          on_failure_callback=None,
          on_retry_callback=None,
          email=None,
          with_dagrun_type=DagRunType.SCHEDULED,
          **kwargs,
      ):
          with dag_maker(dag_id, **kwargs) as dag:
              op = EmptyOperator(
                  task_id=task_id,
                  max_active_tis_per_dag=max_active_tis_per_dag,
                  max_active_tis_per_dagrun=max_active_tis_per_dagrun,
                  executor_config=executor_config or {},
                  on_success_callback=on_success_callback,
                  on_execute_callback=on_execute_callback,
                  on_failure_callback=on_failure_callback,
                  on_retry_callback=on_retry_callback,
                  email=email,
                  pool=pool,
                  trigger_rule=trigger_rule,
              )
          if with_dagrun_type is not None:
              dag_maker.create_dagrun(run_type=with_dagrun_type)
          return dag, op
  
      return create_dag
  
imports: from __future__ import annotations
  import json
  import os
  import platform
  import subprocess
  import sys
  import warnings
  from contextlib import ExitStack, suppress
  from datetime import datetime, timedelta
  from pathlib import Path
  from typing import TYPE_CHECKING
  import pytest
  import time_machine
  from itsdangerous import URLSafeSerializer
label_desc: Use image node_id 28 for calling a global function with example usage: create_dummy_dag(dag_maker) and returns: create_dag, dag,  op