parameters: (group, backend)
docstring: The Helper to do destroy_group.
  
      Args:
          group (str): The user communication group.
          backend (str): The backend, like "hccl".
  
      Raises:
          ValueError: If group is "hccl_world_group" or backend is invalid.
docstring_summary: The Helper to do destroy_group.
docstring_tokens: The Helper to do destroy_group .
function: def _destroy_group_helper(group, backend):
      """
      The Helper to do destroy_group.
  
      Args:
          group (str): The user communication group.
          backend (str): The backend, like "hccl".
  
      Raises:
          ValueError: If group is "hccl_world_group" or backend is invalid.
      """
      if backend == Backend.HCCL:
          if group == HCCL_WORLD_COMM_GROUP:
              raise ValueError("The hccl_world_group does not support destruction.")
          hccl.destroy_group(group)
      elif backend == Backend.NCCL:
          raise RuntimeError("Nccl doesn't support destroy_group now.")
      else:
          raise ValueError("The context configuration parameter 'backend' {} is not supported, "
                           "please use hccl.".format(backend))
function_tokens: def _destroy_group_helper ( group , backend ) : if backend == Backend . HCCL : if group == HCCL_WORLD_COMM_GROUP : raise ValueError ( "The hccl_world_group does not support destruction." ) hccl . destroy_group ( group ) elif backend == Backend . NCCL : raise RuntimeError ( "Nccl doesn't support destroy_group now." ) else : raise ValueError ( "The context configuration parameter 'backend' {} is not supported, " "please use hccl." . format ( backend ) )