code: def test_manual_with_restricted_middle(
      restricted_timetable: Timetable, restriction: TimeRestriction
  ):
      """
      Test that when using strict event dates, manual runs after the first event have the
      most recent event's date as the start interval
      """
      manual_run_data_interval = (
          restricted_timetable.infer_manual_data_interval(
              run_after=NON_EVENT_DATE
          )
      )
      expected_data_interval = DataInterval.exact(MOST_RECENT_EVENT)
      assert expected_data_interval == manual_run_data_interval
  
file_path: airflow/tests/timetables/test_events_timetable.py
imports: from __future__ import annotations
  import pendulum
  import pytest
  import time_machine
  from airflow.timetables.base import DagRunInfo, DataInterval, TimeRestriction, Timetable
  from airflow.timetables.events import EventsTimetable
  from airflow.utils.timezone import utc
label_desc: Use image node_id 6 for calling a global function with example usage: test_manual_with_restricted_middle(restricted_timetable, restriction) without return types