class_docstr: Note:
      You should use :meth:`labml.logger.iterate`
      or :meth:`labml.monit.enum` to create iterators
      and enumerators.
code: def __next__(self):
      try:
          self._counter += 1
          self._logger.progress(self._counter)
          next_value = next(self._iterator)
      except StopIteration as e:
          if not self.is_section_specified:
              self._section.__exit__(None, None, None)
          raise e
  
      return next_value
  
file_path: labml/client/labml/internal/monitor/iterator.py
imports: import typing
  from typing import Optional, Iterable, TYPE_CHECKING
  from .sections import Section
label_desc: Use image node_id 4 for calling the Iterator obj's underlying member method code with example usage: obj.__next__() and returns: next_value