docstr: Creates an iterator with a range `iterator`.
  
  See example for usage.
docstr_tok: ["Creates","an","iterator","with","a","range","`","iterator","`",".","See","example","for","usage","."]
code: def __init__(
      self,
      iterator: Collection,
      *,
      monitor: "Monitor",
      is_track: bool,
      is_print_iteration_time: bool,
  ):
      """
      Creates an iterator with a range `iterator`.
  
      See example for usage.
      """
      self.iterator = iterator
      self._start_time = 0.0
      self._iter_start_time = 0.0
      self._iter_start_step = 0
      self._init_time = 0.0
      self._iter_time = 0.0
      self._beta_pow = 1.0
      self._beta = 0.6
      self.monitor = monitor
      self.__global_step: Optional[int] = None
      self.__looping_sections: Dict[str, LoopingSection] = {}
      self._is_print_iteration_time = is_print_iteration_time
      self._is_track = is_track
      self._started = False
  
file_path: labml/client/labml/internal/monitor/loop.py
imports: import math
  import time
  from typing import Optional, Dict, TYPE_CHECKING, List, Collection
  from labml import logger
  from ..monitor.sections import LoopingSection
  from ..tracker import tracker_singleton
label_desc: Use image node_id 1 to create a new Loop object  with example: obj = Loop(iterator)