code: def _clone_world_group():
      """Create a clone of the world group
      Note: We need to clone the dist world group because we
      use dist.get_global_rank() utility function in DeepSpeed at many places.
      As that function does not work on dist.group.WORLD, we
      need to keep a clone of it.
      """
      assert dist.is_initialized(), "dist is not initialized"
      global _WORLD_GROUP
      if _WORLD_GROUP is None:
          # If not cloned already, clone the world group
          _WORLD_GROUP = dist.new_group(
              ranks=range(dist.get_world_size())
          )
      return _WORLD_GROUP
  
imports: from deepspeed import comm
  from deepspeed.utils import log_dist
  from deepspeed.utils.exceptions import DeprecatedException
label_desc: Use image node_id 14 for calling a global function with example usage: _clone_world_group() and returns: _WORLD_GROUP