code: def finish_loop(self):
      if len(self.__sections) != 0:
          raise RuntimeError(
              "Cannot be within a section when finishing the loop"
          )
      tracker().finish_loop()
      self.__loop = None
      self.__is_looping = False
  
imports: import typing
  from typing import Optional, List, Union, Tuple
  from .iterator import Iterator
  from .loop import Loop
  from .mix import Mix
  from .sections import Section, OuterSection
  from .time_recorder import TimeRecorder, Summary
  from ..logger import logger_singleton
  from ..logger.types import LogPart
  from ..tracker import tracker_singleton
  from ..util.colors import StyleCode
  from ...logger import Text
  from ...utils.notice import labml_notice
label_desc: Use image node_id 14 for calling the Monitor obj's underlying member method code with example usage: obj.finish_loop() without return types