code: def new_nccl_ib_group(ranks):
      set_nccl_ib_envs()
      group = torch.distributed.new_group(ranks, backend="nccl")
      init_nccl_net(group=group)
      return group
  
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 6 for calling a global function with example usage: new_nccl_ib_group(ranks) and returns: group