code: def format_color(text, color, use_color_setting):
      
      if not use_color_setting:
          return text
      else:
          return '{}{}{}'.format(color, text, NORMAL)
docs: Format text with color.
  
      Args:
          text - Text to be formatted with color if `use_color`
          color - The color start string
          use_color_setting - Whether or not to color