code: def _get_global_gloo_group():
      """
      Return a process group based on gloo backend, containing all the ranks
      The result is cached.
      Returns:
          (group): pytorch dist group.
      """
      if dist.get_backend() == "nccl":
          return dist.new_group(backend="gloo")
      else:
          return dist.group.WORLD
  
imports: import functools
  import logging
  import pickle
  import torch
  import torch.distributed
  from pytorchvideo.layers.distributed import cat_all_gather, get_local_process_group, get_local_rank, get_local_size, get_world_size, init_distributed_training
label_desc: Use image node_id 9 for calling a global function with example usage: _get_global_gloo_group() and returns: dist, dist