code: def check_pid(pid):
      """
      Check if a process with the given PID (pid) exists
      """
      try:
          System.Diagnostics.Process.GetProcessById(pid)
          # process with given pid is running
          return True
      except System.InvalidOperationException:
          # process wasn't started by this object (but is running)
          return True
      except System.ArgumentException:
          # process with given pid isn't running
          return False
  
file_path: catboost/contrib/python/ipython/py2/IPython/utils/_process_cli.py
imports: import clr
  import System
  import os
  from IPython.utils import py3compat
  from ._process_common import arg_split
label_desc: Use image node_id 4 for calling a global function with example usage: check_pid(pid) and returns: True, True, False