def inject_input(self, event):
    if self.delay_input_events:
      wait_time_seconds = self.wait_time(event)
      if wait_time_seconds > 0.01:
        log.debug("Delaying input_event %s for %.0f ms" %
            ( str(event).replace("\n", "") , (wait_time_seconds) * 1000 ))

        self.sleep_continuation(wait_time_seconds)
    log.debug("Injecting %r", event)
    # TODO(cs): AFACT, this is essentially a dummy variable? Since event.time
    # is in the past... Andi, can you verify this?
    end = event.time.as_float()
    self._poll_event(event, end)
dataset/ETHPy150Open ucb-sts/sts/sts/control_flow/event_scheduler.py/EventScheduler.inject_input/original