code: def get_parent_pid(pid):
      import psutil
  
      cur_proc = psutil.Process(pid)
      return cur_proc.ppid()
  
imports: import re
  from bigdl.dllib.utils.log4Error import invalidInputError
label_desc: Use image node_id 4 for calling a global function with example usage: get_parent_pid(pid) and returns: cur_proc