code: def init_torch_distributed_local():
      if torch.distributed.is_initialized():
          return
  
      init_url = "file://" + tempfile.mkstemp()[1]
      backend = (
          torch.distributed.Backend.NCCL
          if torch.cuda.is_available() and not is_windows
          else torch.distributed.Backend.GLOO
      )
      torch.distributed.init_process_group(
          backend=backend,
          rank=0,
          world_size=1,
          init_method=init_url,
      )
  
imports: import sys
  import tempfile
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: init_torch_distributed_local() without return types