code: def _system_body(p):
      """Callback for _system."""
      enc = DEFAULT_ENCODING
      for line in read_no_interrupt(p.stdout).splitlines():
          line = line.decode(enc, "replace")
          print(line, file=sys.stdout)
      for line in read_no_interrupt(p.stderr).splitlines():
          line = line.decode(enc, "replace")
          print(line, file=sys.stderr)
  
      # Wait to finish for returncode
      return p.wait()
  
file_path: catboost/contrib/python/ipython/py2/IPython/utils/_process_win32.py
imports: from __future__ import print_function
  import os
  import sys
  import ctypes
  from ctypes import c_int, POINTER
  from ctypes.wintypes import LPCWSTR, HLOCAL
  from subprocess import STDOUT
  from ._process_common import read_no_interrupt, process_handler, arg_split
  from .None import py3compat
  from .encoding import DEFAULT_ENCODING
label_desc: Use image node_id 2 for calling a global function with example usage: _system_body(p) and returns: p