class_docstr: A callable which is passed to submitit to launch the jobs.
class_docstr_tok: ["A","callable","which","is","passed","to","submitit","to","launch","the","jobs","."]
code: def __call__(self):
      job_env = submitit.JobEnvironment()
      os.environ["MASTER_ADDR"] = job_env.hostnames[0]
      os.environ["MASTER_PORT"] = str(self.port)
      os.environ["RANK"] = str(job_env.global_rank)
      os.environ["LOCAL_RANK"] = str(job_env.local_rank)
      os.environ["WORLD_SIZE"] = str(job_env.num_tasks)
      setup_distributed(self.cfg_state)
      self.fun()
  
file_path: pycls/pycls/core/distributed.py
imports: import os
  import random
  import submitit
  import torch
  from pycls.core.config import cfg
label_desc: Use image node_id 2 for calling the SubmititRunner obj's underlying member method code with example usage: obj.__call__() without return types