code: def init_dist():
      if not dist.is_initialized():
          os.environ["RANK"] = "0"
          os.environ["WORLD_SIZE"] = "1"
          os.environ["MASTER_ADDR"] = "127.0.0.1"
          os.environ["MASTER_PORT"] = "13579"
          dist.init_process_group("nccl")
  
imports: import os
  import torch
  import torch.distributed
label_desc: Use image node_id 2 for calling a global function with example usage: init_dist() without return types