docstr: Removes StreamHandler that log to stdout and stderr from the logger.
docstr_tok: ["Removes","StreamHandler","that","log","to","stdout","and","stderr","from","the","logger","."]
code: def remove_stream_handlers(self):
      """Removes StreamHandler that log to stdout and stderr from the logger."""
      if self._logger is None:
          raise RuntimeError(
              "Impossible to set handlers if the Logger is not predefined"
          )
  
      # ======== Remove Handler if already existing ========
  
      try:
          self._logger.removeHandler(self._handlers["stream_stdout"])
          del self._handlers["stream_stdout"]
      except KeyError:
          pass
  
      try:
          self._logger.removeHandler(self._handlers["stream_stderr"])
          del self._handlers["stream_stderr"]
      except KeyError:
          pass
  
imports: import enum
  import logging
  import sys
  import threading
  import warnings
  from contextlib import contextmanager
  from logging.handlers import MemoryHandler
  from nemo.constants import NEMO_ENV_VARNAME_REDIRECT_LOGS_TO_STDERR, NEMO_ENV_VARNAME_TESTING
  from nemo.utils.env_var_parsing import get_envbool
  from nemo.utils.formatters.base import BaseNeMoFormatter, DebugNeMoFormatter
  from nemo.utils.get_rank import is_global_rank_zero
  from nemo.utils.metaclasses import Singleton
label_desc: Use image node_id 3 for calling the Logger obj's underlying member method code with example usage: obj.remove_stream_handlers() without return types