code: def __iter__(self):
      self._iter = TrainingLoopIterator(
          tracker.get_global_step(), self.__loop_count, self.__loop_step
      )
  
      self.__loop = monit.loop(typing.cast(Collection, self._iter))
  
      iter(self.__loop)
      try:
          self.old_handler = signal.signal(
              signal.SIGINT, self.__handler
          )
      except ValueError:
          pass
      return self
  
imports: import signal
  import typing
  from typing import Optional, Tuple, Any, Collection
  from labml import tracker, logger, experiment, monit
  from labml.configs import BaseConfigs, meta_config, option
  from labml.internal.monitor import Loop
  from labml.logger import Text
label_desc: Use image node_id 2 for calling the TrainingLoop obj's underlying member method code with example usage: obj.__iter__() and returns: self