code: def init(autoreset=False, convert=None, strip=None, wrap=True):
      if not wrap and any([autoreset, convert, strip]):
          raise ValueError(
              "wrap=False conflicts with any other arg=True"
          )
  
      global wrapped_stdout, wrapped_stderr
      global orig_stdout, orig_stderr
  
      orig_stdout = sys.stdout
      orig_stderr = sys.stderr
  
      if sys.stdout is None:
          wrapped_stdout = None
      else:
          sys.stdout = wrapped_stdout = wrap_stream(
              orig_stdout, convert, strip, autoreset, wrap
          )
      if sys.stderr is None:
          wrapped_stderr = None
      else:
          sys.stderr = wrapped_stderr = wrap_stream(
              orig_stderr, convert, strip, autoreset, wrap
          )
  
      global atexit_done
      if not atexit_done:
          atexit.register(reset_all)
          atexit_done = True
  
file_path: catboost/contrib/python/colorama/py2/colorama/initialise.py
imports: import atexit
  import contextlib
  import sys
  from .ansitowin32 import AnsiToWin32
label_desc: Use image node_id 3 for calling a global function with example usage: init(autoreset, convert, strip, wrap) without return types