code: def format(self, record):
      log_fmt = self.FORMATS.get(record.levelno)
      return log_fmt.format(record)
  
imports: import logging
  import os
  from logging.config import dictConfig
label_desc: Use image node_id 1 for calling the ColorFormatter obj's underlying member method code with example usage: obj.format(record) and returns: log_fmt