code: def test_serialize_test_dag_detail_schema(url_safe_serializer):
      dag = DAG(
          dag_id="test_dag",
          start_date=datetime(2020, 6, 19),
          doc_md="docs",
          orientation="LR",
          default_view="duration",
          params={"foo": 1},
          tags=["example1", "example2"],
      )
      schema = DAGDetailSchema()
  
      expected = {
          "catchup": True,
          "concurrency": 16,
          "max_active_tasks": 16,
          "dag_id": "test_dag",
          "dag_run_timeout": None,
          "default_view": "duration",
          "description": None,
          "doc_md": "docs",
          "fileloc": __file__,
          "file_token": url_safe_serializer.dumps(__file__),
          "is_active": None,
          "is_paused": None,
          "is_subdag": False,
          "orientation": "LR",
          "owners": [],
          "params": {
              "foo": {
                  "__class": "airflow.models.param.Param",
                  "value": 1,
                  "description": None,
                  "schema": {},
              }
          },
          "schedule_interval": {
              "__type": "TimeDelta",
              "days": 1,
              "seconds": 0,
              "microseconds": 0,
          },
          "start_date": "2020-06-19T00:00:00+00:00",
          "tags": [{"name": "example1"}, {"name": "example2"}],
          "template_searchpath": None,
          "timezone": UTC_JSON_REPR,
          "max_active_runs": 16,
          "pickle_id": None,
          "end_date": None,
          "is_paused_upon_creation": None,
          "render_template_as_native_obj": False,
      }
      obj = schema.dump(dag)
      expected.update({"last_parsed": obj["last_parsed"]})
      assert obj == expected
  
file_path: airflow/tests/api_connexion/schemas/test_dag_schema.py
imports: from __future__ import annotations
  from datetime import datetime
  import pendulum
  import pytest
  from airflow.api_connexion.schemas.dag_schema import DAGCollection, DAGCollectionSchema, DAGDetailSchema, DAGSchema
  from airflow.models import DagModel, DagTag
  from airflow.models.dag import DAG
label_desc: Use image node_id 3 for calling a global function with example usage: test_serialize_test_dag_detail_schema(url_safe_serializer) without return types