parameters: (group, group_rank_id)
return_statement: return _get_world_rank_from_group_rank_helper(group=group, group_rank_id=group_rank_id, backend=GlobalComm.BACKEND)
docstring: Get the rank ID in the world communication group corresponding to
      the rank ID in the specified user communication group.
  
      Note:
          GPU version of MindSpore doesn't support this method.
          The parameter group should not be "hccl_world_group".
          This method should be used after init(). The user needs to preset communication environment variables
          before running the following example, please see the docstring of the mindspore.managerment.
  
      Args:
          group (str): The communication group to work on. The group is created by create_group.
          group_rank_id (int): A rank ID in the communication group.
  
      Returns:
          int, the rank ID in world communication group.
  
      Raises:
          TypeError: If `group_rank_id` is not an integer or the group is not a string.
          ValueError: If group is 'hccl_world_group' or backend is invalid.
          RuntimeError: If HCCL is not available or MindSpore is GPU version.
  
      Examples:
          >>> from mindspore.context import set_context
          >>> from mindspore.communication.management import init, create_group, get_world_rank_from_group_rank
          >>> set_context(device_target="Ascend")
          >>> init()
          >>> group = "0-4"
          >>> rank_ids = [0,4]
          >>> create_group(group, rank_ids)
          >>> world_rank_id = get_world_rank_from_group_rank(group, 1)
          >>> print("world_rank_id is: ", world_rank_id)
          world_rank_id is: 4
docstring_summary: Get the rank ID in the world communication group corresponding to
      the rank ID in the specified user communication group.
docstring_tokens: Get the rank ID in the world communication group corresponding to the rank ID in the specified user communication group .
function: def get_world_rank_from_group_rank(group, group_rank_id):
      """
      Get the rank ID in the world communication group corresponding to
      the rank ID in the specified user communication group.
  
      Note:
          GPU version of MindSpore doesn't support this method.
          The parameter group should not be "hccl_world_group".
          This method should be used after init(). The user needs to preset communication environment variables
          before running the following example, please see the docstring of the mindspore.managerment.
  
      Args:
          group (str): The communication group to work on. The group is created by create_group.
          group_rank_id (int): A rank ID in the communication group.
  
      Returns:
          int, the rank ID in world communication group.
  
      Raises:
          TypeError: If `group_rank_id` is not an integer or the group is not a string.
          ValueError: If group is 'hccl_world_group' or backend is invalid.
          RuntimeError: If HCCL is not available or MindSpore is GPU version.
  
      Examples:
          >>> from mindspore.context import set_context
          >>> from mindspore.communication.management import init, create_group, get_world_rank_from_group_rank
          >>> set_context(device_target="Ascend")
          >>> init()
          >>> group = "0-4"
          >>> rank_ids = [0,4]
          >>> create_group(group, rank_ids)
          >>> world_rank_id = get_world_rank_from_group_rank(group, 1)
          >>> print("world_rank_id is: ", world_rank_id)
          world_rank_id is: 4
      """
      if not isinstance(group, str):
          raise TypeError("For 'get_world_rank_from_group_rank', the argument 'group' must be type of string, "
                          "but got 'group' type : {}.".format(type(group)))
      return _get_world_rank_from_group_rank_helper(group=group, group_rank_id=group_rank_id, backend=GlobalComm.BACKEND)
function_tokens: def get_world_rank_from_group_rank ( group , group_rank_id ) : if not isinstance ( group , str ) : raise TypeError ( "For 'get_world_rank_from_group_rank', the argument 'group' must be type of string, " "but got 'group' type : {}." . format ( type ( group ) ) ) return _get_world_rank_from_group_rank_helper ( group = group , group_rank_id = group_rank_id , backend = GlobalComm . BACKEND )