class_docstr: Spit out colored text in supported terminals.
  
  colorama__ makes ANSI escape character sequences work under Windows.
  See the colorama documentation for details.
  
  __ https://pypi.python.org/pypi/colorama
  
  If record has an extra `tb_only` attribute, it will not show the
  exception cause, just the message and the traceback.
code: def format(self, record) -> str:  # noqa: A003, C901
      record.message = record.getMessage()
      msg = self.formatMessage(record)
  
      if record.levelno == logging.INFO:
          return msg
  
      ei = record.exc_info
      if ei:
          cause = ""
          if not getattr(record, "tb_only", False):
              cause = ": ".join(_iter_causes(ei[1]))
          sep = " - " if msg and cause else ""
          msg = msg + sep + cause
  
      asctime = ""
      verbose = _is_verbose()
      if verbose:
          asctime = self.formatTime(record, self.datefmt)
      if verbose or self.show_traceback:
          if ei and not record.exc_text:
              record.exc_text = self.formatException(ei)
          if record.exc_text:
              if msg[-1:] != "\n":
                  msg = msg + "\n"
              msg = msg + record.exc_text + "\n"
          if record.stack_info:
              if msg[-1:] != "\n":
                  msg = msg + "\n"
              msg = msg + self.formatStack(record.stack_info) + "\n"
  
      level = record.levelname
      if self.log_colors:
          color = self.color_codes[level]
          if asctime:
              asctime = color + asctime + self.reset
          level = color + level + self.reset
      return asctime + (" " if asctime else "") + level + ": " + msg
  
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 2 for calling the ColorFormatter obj's underlying member method code with example usage: obj.format(record) and returns: unknown, msg