code: def get_unbuffered_io(fd, filename):
      f = open(str(filename), "w")
      if fd != f.fileno():
          os.dup2(f.fileno(), fd)
  
      class AutoFlush:
          def write(self, data):
              f.write(data)
              f.flush()
  
          def __getattr__(self, name):
              return getattr(f, name)
  
      return AutoFlush()
  
file_path: catboost/contrib/python/py/py2/py/_process/forkedfunc.py
imports: import py
  import os
  import sys
  import marshal
label_desc: Use image node_id 1 for calling a global function with example usage: get_unbuffered_io(fd, filename) and returns: AutoFlush, getattr