code: def just_fix_windows_console():
      global fixed_windows_console
  
      if sys.platform != "win32":
          return
      if fixed_windows_console:
          return
      if wrapped_stdout is not None or wrapped_stderr is not None:
          # Someone already ran init() and it did stuff, so we won't second-guess them
          return
  
      # On newer versions of Windows, AnsiToWin32.__init__ will implicitly enable the
      # native ANSI support in the console as a side-effect. We only need to actually
      # replace sys.stdout/stderr if we're in the old-style conversion mode.
      new_stdout = AnsiToWin32(
          sys.stdout, convert=None, strip=None, autoreset=False
      )
      if new_stdout.convert:
          sys.stdout = new_stdout
      new_stderr = AnsiToWin32(
          sys.stderr, convert=None, strip=None, autoreset=False
      )
      if new_stderr.convert:
          sys.stderr = new_stderr
  
      fixed_windows_console = 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 5 for calling a global function with example usage: just_fix_windows_console() without return types