code: def running(processid):
      
      try:
          # From kill(2)
          #   If sig is 0 (the null signal), error checking is performed but no
          #   signal is actually sent. The null signal can be used to check the
          #   validity of pid
          os.kill(processid, 0)
      except OverflowError as exc:
          print("checking validity of pid ({p}) failed with: {e}"
                .format(p=processid, e=exc))
          sys.exit(1)
      except OSError:
          return False
      else:
          return True
docs: Check the validity of a process ID.
  
      Arguments:
          processid (int): Process ID number.
  
      Returns:
          True if process ID is found otherwise False.