code: def check_pid(pid):
      # OpenProcess returns 0 if no such process (of ours) exists
      # positive int otherwise
      return bool(ctypes.windll.kernel32.OpenProcess(1, 0, pid))
  
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 5 for calling a global function with example usage: check_pid(pid) and returns: bool