code: def _setup_gpu_args(self):
      import submitit
      from pathlib import Path
  
      job_env = submitit.JobEnvironment()
      self.args.output_dir = Path(
          str(self.args.output_dir).replace("%j", str(job_env.job_id))
      )
      self.args.gpu = job_env.local_rank
      self.args.rank = job_env.global_rank
      self.args.world_size = job_env.num_tasks
      print(
          f"Process group: {job_env.num_tasks} tasks, rank: {job_env.global_rank}"
      )
  
file_path: detr/run_with_submitit.py
imports: import argparse
  import os
  import uuid
  from pathlib import Path
  import main
  import submitit
label_desc: Use image node_id 4 for calling the Trainer obj's underlying member method code with example usage: obj._setup_gpu_args() without return types