code: def freeze_time_for_dagruns(time_machine):
      time_machine.move_to("2023-05-02T00:00:00+00:00", tick=False)
      yield
  
file_path: airflow/tests/www/views/test_views_cluster_activity.py
imports: from __future__ import annotations
  import pendulum
  import pytest
  from airflow.models import DagBag
  from airflow.operators.empty import EmptyOperator
  from airflow.utils.state import DagRunState, TaskInstanceState
  from airflow.utils.types import DagRunType
  from tests.test_utils.db import clear_db_runs
label_desc: Use image node_id 3 for calling a global function with example usage: freeze_time_for_dagruns(time_machine) without return types