code: def init_process_group(torch_init_process_group):
      def new_init_process_group(backend, *args, **kargs):
          if backend == "nccl":
              torch_init_process_group("gloo", *args, **kargs)
          else:
              torch_init_process_group(backend, *args, **kargs)
  
      return new_init_process_group
  
imports: import os
  import torch
  from logging import warning
  from bigdl.nano.utils.pytorch import TORCH_VERSION_LESS_1_10
label_desc: Use image node_id 9 for calling a global function with example usage: init_process_group(torch_init_process_group) and returns: new_init_process_group