code: def get_rank(group_name: str = "default") -> int:
      """Return the rank of this process in the given group.
  
      Args:
          group_name: the name of the group to query
  
      Returns:
          the rank of this process in the named group,
          -1 if the group does not exist or the process does
          not belong to the group.
      """
      _check_inside_actor()
      if not is_group_initialized(group_name):
          return -1
      g = _group_mgr.get_group_by_name(group_name)
      return g.rank
  
imports: import logging
  import os
  from typing import List
  import numpy
  import ray
  from ray.util.collective import types
label_desc: Use image node_id 7 for calling a global function with example usage: get_rank(group_name) and returns: g, unknown