code: def verify_bts_during_session(
      self, bts_time, bts_session_times, bts_idx
  ):
      def _check_session_bts_during(session_label, events, bts_dt):
          minutes = self.nyse_calendar.minutes_for_session(
              session_label
          )
  
          self.assertEqual(393, len(events))
  
          self.assertEqual(events[0], (session_label, SESSION_START))
  
          for i in range(1, bts_idx):
              self.assertEqual(events[i], (minutes[i - 1], BAR))
  
          self.assertEqual(
              events[bts_idx], (bts_dt, BEFORE_TRADING_START_BAR)
          )
  
          for i in range(bts_idx + 1, 391):
              self.assertEqual(events[i], (minutes[i - 2], BAR))
  
          self.assertEqual(events[392], (minutes[-1], SESSION_END))
  
      clock = MinuteSimulationClock(
          self.sessions,
          self.opens,
          self.closes,
          days_at_time(self.sessions, bts_time, "US/Eastern"),
          False,
      )
  
      all_events = list(clock)
  
      _check_session_bts_during(
          self.sessions[0], all_events[0:393], bts_session_times[0]
      )
  
      _check_session_bts_during(
          self.sessions[1], all_events[393:786], bts_session_times[1]
      )
  
      _check_session_bts_during(
          self.sessions[2], all_events[786:], bts_session_times[2]
      )
  
file_path: zipline/tests/test_clock.py
imports: from datetime import time
  from unittest import TestCase
  import pandas
  from trading_calendars import get_calendar
  from trading_calendars.utils.pandas_utils import days_at_time
  from zipline.gens.sim_engine import MinuteSimulationClock, SESSION_START, BEFORE_TRADING_START_BAR, BAR, SESSION_END
label_desc: Use image node_id 6 for calling the TestClock obj's underlying member method code with example usage: obj.verify_bts_during_session(bts_time, bts_session_times, bts_idx) without return types