code: def init_nccl_net(group):
      temp = torch.ones(1, device="cuda")
      torch.distributed.all_reduce(temp, group=group)
      torch.cuda.synchronize()
  
imports: from typing import Tuple, Optional
  import warnings
  import os
  import torch
  from apex.transformer.log_util import get_transformer_logger
  from apex.transformer._ucc_util import HAS_UCC
label_desc: Use image node_id 4 for calling a global function with example usage: init_nccl_net(group) without return types