code: def test_serialize(self, task_instance):
      event_log_model = Log(
          event="TEST_EVENT", task_instance=task_instance
      )
      event_log_model.dttm = self.default_time
      deserialized_log = event_log_schema.dump(event_log_model)
      assert deserialized_log == {
          "event_log_id": event_log_model.id,
          "event": "TEST_EVENT",
          "dag_id": "TEST_DAG_ID",
          "task_id": "TEST_TASK_ID",
          "execution_date": self.default_time.isoformat(),
          "owner": "airflow",
          "when": self.default_time.isoformat(),
          "extra": None,
      }
  
file_path: airflow/tests/api_connexion/schemas/test_event_log_schema.py
imports: from __future__ import annotations
  import pytest
  from airflow.api_connexion.schemas.event_log_schema import EventLogCollection, event_log_collection_schema, event_log_schema
  from airflow.models import Log
  from airflow.utils import timezone
label_desc: Use image node_id 1 for calling the TestEventLogSchema obj's underlying member method code with example usage: obj.test_serialize(task_instance) without return types