class_docstr: Formatter to add coloring to log messages by log type
code: def format(self, record):
      record.rank = int(os.getenv("LOCAL_RANK", "0"))
      log_message = super().format(record)
      return (
          self.COLORS.get(record.levelname, "")
          + log_message
          + Fore.RESET
      )
  
file_path: axolotl/src/axolotl/logging_config.py
imports: import os
  import sys
  from logging import Formatter
  from logging.config import dictConfig
  from typing import Any, Dict
  from colorama import Fore, Style, init
label_desc: Use image node_id 1 for calling the ColorfulFormatter obj's underlying member method code with example usage: obj.format(record) and returns: unknown