code: def cprint(text, color=None, on_color=None, attrs=None, **kwargs):
      
      try:
          print((colored(text, color, on_color, attrs)), **kwargs)
      except TypeError:
          # flush is not supported by py2.7
          kwargs.pop("flush", None)
          print((colored(text, color, on_color, attrs)), **kwargs)
docs: Print colorize text.
  
      It accepts arguments of print function.