code: def process_kill_slow(kill_time=2):
      def handler_stop_signals(signum, frame):
          time.sleep(kill_time)
          sys.exit(0)
  
      signal.signal(signal.SIGINT, handler_stop_signals)
      signal.signal(signal.SIGTERM, handler_stop_signals)
      time.sleep(360)
  
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 2 for calling a global function with example usage: process_kill_slow(kill_time) without return types