code: def pid_is_exist(pid: int):
      """
      Try to kill process by PID.
  
      Args:
          pid(int): PID of process to be killed.
  
      Returns:
           True if PID will be killed.
  
      Examples:
      .. code-block:: python
  
          pid_is_exist(pid=8866)
      """
      try:
          os.kill(pid, 0)
      except:
          return False
      else:
          return True
  
imports: import argparse
  import os
  import platform
  import json
  import multiprocessing
  import time
  import signal
  import paddlehub
  from paddlehub.commands import register
  from paddlehub.serving import app_compat
  from paddlehub.env import CONF_HOME
  from paddlehub.serving.http_server import run_all, StandaloneApplication
  from paddlehub.utils import log
  from paddlehub.utils.utils import is_port_occupied
  from paddlehub.server.server import CacheUpdater
label_desc: Use image node_id 2 for calling a global function with example usage: pid_is_exist(pid) and returns: True, False