code: def printer(text, color=None, **kwargs):
      
      if nocolor:
          # import sys
          # sys.stdout.write(text + "" if ("end" in kwargs and kwargs["end"] == "") else '\n')
          # sys.stdout.flush()
          print(text, **kwargs)
      else:
          if color is None:
              cprint(text, **kwargs)
          else:
              cprint(text, color, **kwargs)
docs: Prints using color or standard print() depending on the value
      of 'nocolor'.