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
  
imports: import clr
  import System
  import os
  from ._process_common import arg_split
label_desc: Use image node_id 3 for calling a global function with example usage: check_pid(pid) and returns: True, True, False