code: def idx(self):
      if not self._iter:
          return 0
      if not self._iter.i:
          return 0
      if self.__loop_step is None:
          return self._iter.i
      return self._iter.i / self.__loop_step
  
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 3 for calling the TrainingLoop obj's underlying member method code with example usage: obj.idx() and returns: unknown, int, int, self