code: def format(self, record):
      return self._formatters[record.levelno].format(record)
  
file_path: TextBox/textbox/utils/logger.py
imports: import logging
  import os
  from accelerate.logging import get_logger
  from textbox.utils.utils import ensure_dir
  from collections import defaultdict
  from colorama import init, Fore, Style
  from typing import Optional
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: self