code: def manager():
      pid_to_watch = int(sys.argv[1])
      pgid_to_kill = int(sys.argv[2])
      import time
  
      while psutil.pid_exists(pid_to_watch):
          time.sleep(1)
      stop(pgid_to_kill)
  
imports: import os
  import sys
  import signal
  import psutil
  import logging
label_desc: Use image node_id 2 for calling a global function with example usage: manager() without return types