code: def cprint(stream, *args, **kwds):
      """
      Print with color. Examples::
  
          # colors are BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE
          cprint('stdout', RED, 'This is in red. ', RESET, 'and this is normal\n')
  
          # Adding BR_ before the color manes it bright
          cprint('stdout', BR_GREEN, 'This is bright green.\n', RESET)
  
          # Adding BACK_ changes background color
          cprint('stderr', BACK_BLUE, WHITE, 'This is white-on-blue.', -1)
  
          # Integers 0-7 for normal, 8-15 for bright, and 40-47 for background.
          # -1 to reset.
          cprint('stderr', 1, 'This is in red.', -1)
  
      """
      if isinstance(stream, str):
          stream = kwds.get("stream", "stdout")
          err = stream == "stderr"
          stream = getattr(sys, stream)
      else:
          err = kwds.get("stderr", False)
  
      if hasattr(stream, "isatty") and stream.isatty():
          if _WIN:
              # convert to win32 calls
              for arg in args:
                  if isinstance(arg, str):
                      stream.write(arg)
                  else:
                      kwds = WIN[arg]
                      winset(stderr=err, **kwds)
          else:
              # convert to ANSI
              for arg in args:
                  if isinstance(arg, str):
                      stream.write(arg)
                  else:
                      stream.write(ANSI[arg])
      else:
          # ignore colors
          for arg in args:
              if isinstance(arg, str):
                  stream.write(arg)
  
imports: import sys
  from .colorama.win32 import windll
  from .colorama.winterm import WinColor, WinStyle, WinTerm
label_desc: Use image node_id 2 for calling a global function with example usage: cprint(stream) without return types