docstr: Write to Tqdm's stream so as to not break progress-bars
docstr_tok: ["Write","to","Tqdm","'s","stream","so","as","to","not","break","progress-bars"]
code: def emit(self, record):
      """Write to Tqdm's stream so as to not break progress-bars"""
      try:
          if record.exc_info:
              _, exc, *_ = record.exc_info
              if hasattr(exc, "__pretty_exc__"):
                  try:
                      self.emit_pretty_exception(
                          exc, verbose=_is_verbose()
                      )
                      if not _is_verbose():
                          return
                  except Exception:  # noqa: BLE001, S110
                      pass
  
          msg = self.format(record)
          Tqdm.write(
              msg,
              file=self.stream,
              end=getattr(self, "terminator", "\n"),
          )
          self.flush()
      except (BrokenPipeError, RecursionError):
          raise
      except Exception:  # noqa: BLE001
          self.handleError(record)
  
imports: import logging
  import logging.config
  import logging.handlers
  import os
  import sys
  import colorama
  from dvc.progress import Tqdm
label_desc: Use image node_id 3 for calling the LoggerHandler obj's underlying member method code with example usage: obj.emit(record) without return types