code: def test_kill_process():
      process = multiprocessing.Process(target=process_normal)
      process.start()
  
      time.sleep(0.5)
      start_time = time.time()
      kill_command(process.pid)
      end_time = time.time()
      assert not _check_pid_running(process.pid)
      assert end_time - start_time < 2
  
file_path: nni/test/ut/tools/nnictl/test_kill_command.py
imports: import argparse
  import multiprocessing
  import os
  import subprocess
  import signal
  import sys
  import signal
  import time
  import pytest
  from nni.tools.nnictl.command_utils import kill_command, _check_pid_running
label_desc: Use image node_id 4 for calling a global function with example usage: test_kill_process() without return types