code: def wrap_stream(stream, convert, strip, autoreset, wrap):
      if wrap:
          wrapper = AnsiToWin32(
              stream, convert=convert, strip=strip, autoreset=autoreset
          )
          if wrapper.should_wrap():
              stream = wrapper.stream
      return stream
  
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 8 for calling a global function with example usage: wrap_stream(stream, convert, strip, autoreset, wrap) and returns: stream