code: def _get_proc_status(proc):
      '''
      Returns the status of a Process instance.
  
      It's backward compatible with < 2.0 versions of psutil.
      '''
      try:
          return salt.utils.data.decode(proc.status() if PSUTIL2 else proc.status)
      except (psutil.NoSuchProcess, psutil.AccessDenied):
          return Nonf _get_proc_status(proc):
      '''
      Returns the status of a Process instance.
  
      It's backward compatible with < 2.0 versions of psutil.
      '''
      try:
          return salt.utils.data.decode(proc.status() if PSUTIL2 else proc.status)
      except (psutil.NoSuchProcess, psutil.AccessDenied):
          return None
docs: Returns the status of a Process instance.
  
      It's backward compatible with < 2.0 versions of psutil.