code: def requeue_job():
      job_id = os.environ["SLURM_ARRAY_JOB_ID"]
      task_id = os.environ["SLURM_ARRAY_TASK_ID"]
      cmd_to_req = "scontrol requeue {}_{}".format(job_id, task_id)
      prt("Requeuing job using cmd: {}".format(cmd_to_req))
      os.system(cmd_to_req)
      prt("Requeued job {}. Exiting.\n\n".format(job_id))
      sys.exit(0)
  
file_path: pycls/tools/sweep_launch_job.py
imports: import argparse
  import json
  import os
  import signal
  import subprocess
  import sys
  from datetime import datetime
label_desc: Use image node_id 3 for calling a global function with example usage: requeue_job() without return types