code: def _get_global_gloo_group():
      """Return a process group based on gloo backend, containing all the ranks
      The result is cached."""
      if dist.get_backend() == "nccl":
          return dist.new_group(backend="gloo")
      else:
          return dist.group.WORLD
  
file_path: mmdetection/mmdet/utils/dist_utils.py
imports: import functools
  import pickle
  import warnings
  from collections import OrderedDict
  import numpy
  import torch
  import torch.distributed
  from mmengine.dist import get_dist_info
  from torch._utils import _flatten_dense_tensors, _take_tensors, _unflatten_dense_tensors
label_desc: Use image node_id 6 for calling a global function with example usage: _get_global_gloo_group() and returns: dist, dist