              logger.debug("Removing training iterator")
              del self._training_iterator
              self._training_iterator = None
  
      def _cache_data(self, session_id):
          """ Cache TensorBoard logs for the given session ID on first access.
  
          Populates :attr:`_cache` with timestamps and loss data.
  
          If this is a training session and the data is being queried for the training session ID
 
</s> remove     def set_training(self, is_training):
 </s> add     def set_training(self, is_training: bool) -> None: </s> remove         dict or :class:`numpy.ndarray`
 </s> add         dict[int] or :class:`numpy.ndarray` </s> remove     def __init__(self, logs_folder, is_training):
 </s> add     def __init__(self, logs_folder: str, is_training: bool) -> None: </s> remove         int
 </s> add         int or ``None`` </s> remove     def is_cached(self, session_id):
        """ bool: ``True`` if the data already exists in the cache otherwise ``False``. """
 </s> add     def is_cached(self, session_id: int) -> bool:
        """ Check if the given session_id's data is already cached

        Parameters
        ----------
        session_id: int
            The session ID to check

        Returns
        -------
        bool
            ``True`` if the data already exists in the cache otherwise ``False``.
        """
    def _cache_data(self, session_id: int) -> None:
              logger.debug("Removing training iterator")
              del self._training_iterator
              self._training_iterator = None
  
    def _cache_data(self, session_id: int) -> None:
          """ Cache TensorBoard logs for the given session ID on first access.
  
          Populates :attr:`_cache` with timestamps and loss data.
  
          If this is a training session and the data is being queried for the training session ID
keep keep keep keep replace keep keep keep keep keep
 Bugfixes
  - plugin.train.unbalanced - decoder b
  - gui.stats - crash when log folder deleted
  - setup.py - install gcc=12.1.0 on linux (scipy dep)
  - setup.py - don't test ROCm unless valid
  - typofix - cli_args extract singleprocess help
typing
  - lib.gui.analysis.event_reader
  - lib.gpu_stats.directml - make platform specific
unit tests
  - lib.gui.analysis.event_reader 
lib/gui/analysis/event_reader.py