code: def status(name):
      pidfile = var.pidfile(name)
      if os.path.exists(pidfile):
          try:
              pid = _read_pid(pidfile)
          except Exception as e:
              raise PidfileError(pidfile, e) from e
          else:
              try:
                  proc = psutil.Process(pid)
              except psutil.NoSuchProcess as e:
                  raise OrphanedProcess(pid, pidfile) from e
              else:
                  return Status(proc.is_running(), pid)
      else:
          return Status(False)
  
imports: import os
  import logging
  import psutil
  from guild import var
  from guild import util
label_desc: Use image node_id 7 for calling a global function with example usage: status(name) and returns: Status, Status