class_docstr: TimeLimit handler can be used to control training time for computing environments where session time is limited.
  Timer starts when handler is created and not training started.
  This handler gracefully terminates the training if time passed in the training exceeds a limit.
  
  Args:
      limit_sec: Maximum time before training terminates (in seconds). Defaults to 28800.
  
  Examples:
      .. code-block:: python
  
          from ignite.engine import Events
          from ignite.handlers import TimeLimit
  
          handler = TimeLimit() # 8 hours of training
          trainer.add_event_handler(Events.ITERATION_COMPLETED, handler)
  
  .. versionadded:: 0.4.3
code: def __call__(self, engine: Engine) -> None:
      elapsed_time = time.time() - self.start_time
      if elapsed_time > self.limit_sec:
          self.logger.info(
              "Reached the time limit: {} sec. Stop training".format(
                  self.limit_sec
              )
          )
          engine.terminate()
  
imports: import time
  from typing import Optional
  from ignite.engine import Engine
  from ignite.utils import setup_logger
label_desc: Use image node_id 2 for calling the TimeLimit obj's underlying member method code with example usage: obj.__call__(engine) without return types