code: def test_foreground(args):
      launch_command = "nnictl create --config {} --foreground".format(
          args.config
      )
      print(
          "nnictl foreground launch command: ",
          launch_command,
          flush=True,
      )
  
      proc = subprocess.Popen(shlex.split(launch_command))
  
      time.sleep(args.timeout)
      proc.send_signal(signal.SIGINT)
  
imports: import subprocess
  import argparse
  import time
  import shlex
  import signal
label_desc: Use image node_id 1 for calling a global function with example usage: test_foreground(args) without return types