code: def color_format():
      
      str_format = BASE_COLOR_FORMAT if supports_color() else BASE_FORMAT
      color_format = color_message(str_format)
      return ColoredFormatter(color_format)
docs: Main entry point to get a colored formatter, it will use the
      BASE_FORMAT by default and fall back to no colors if the system
      does not support it