code: def _build_formatter(self):
      prefix_format = f"{self.prefix} " if self.prefix else ""
      if COLORED_LOGS and self.interactive:
          return coloredlogs.ColoredFormatter(
              prefix_format + COLORED_FORMAT,
              datefmt=CONSOLE_DATE_FORMAT,
              level_styles=COLORED_LEVEL_STYLES,
              field_styles={},
          )
      elif self.interactive:
          return logging.Formatter(
              prefix_format + CONSOLE_FORMAT,
              datefmt=CONSOLE_DATE_FORMAT,
          )
      else:
          return logging.Formatter(
              prefix_format + LOGFILE_FORMAT,
              datefmt=LOGFILE_DATE_FORMAT,
          )
  
imports: import os
  import sys
  import logging
  from logging import getLogger
label_desc: Use image node_id 2 for calling the ParlaiLogger obj's underlying member method code with example usage: obj._build_formatter() and returns: coloredlogs, logging, logging