def check_process_is_running(pid_file):
  if not os.path.exists(pid_file):
    return False

  process_pid = get_process_running_pid(pid_file)
  try:
    os.kill(process_pid, 0)
    return True
  except __HOLE__:
    return False
dataset/ETHPy150Open XiaoMi/minos/build/build_utils.py/check_process_is_running