code: def cprint(text="", color=None, on_color=None, attrs=None, **kwargs):
      
      # Assume 80 in case not running in a terminal
      columns, lines = shutil.get_terminal_size()
      if columns == 0:
          columns = 80  # Because get_terminal_size's default fallback doesn't work in pipes
  
      # Print text
      termcolor.cprint(textwrap.fill(text, columns, drop_whitespace=False),
                       color=color, on_color=on_color, attrs=attrs, **kwargs)
docs: Colorizes text (and wraps to terminal's width).