code: def test_timestamp_behaviour_with_timezone(dag_maker, session=None):
      execdate = timezone.utcnow()
      with time_machine.travel(execdate, tick=False):
          current_time = timezone.utcnow()
          old_log = add_log(
              execdate,
              session,
              dag_maker,
              timezone_override=pendulum.timezone("Europe/Warsaw"),
          )
          session.expunge(old_log)
          # No matter what timezone we set - we should always get back UTC
          log_time = session.query(Log).one().dttm
          assert log_time == current_time
          assert old_log.dttm.tzinfo.name != "UTC"
          assert log_time.tzinfo.name == "UTC"
          assert (
              old_log.dttm.astimezone(pendulum.timezone("UTC"))
              == log_time
          )
  
file_path: airflow/tests/models/test_timestamp.py
imports: from __future__ import annotations
  import pendulum
  import pytest
  import time_machine
  from airflow.models import Log, TaskInstance
  from airflow.operators.empty import EmptyOperator
  from airflow.utils import timezone
  from airflow.utils.session import provide_session
  from airflow.utils.state import State
  from tests.test_utils.db import clear_db_dags, clear_db_logs, clear_db_runs
label_desc: Use image node_id 4 for calling a global function with example usage: test_timestamp_behaviour_with_timezone(dag_maker, session) without return types