docstr: Return the rank of the current process.
docstr_tok: ["Return","the","rank","of","the","current","process","."]
code: def rank(self):
      """Return the rank of the current process."""
      return self._rank
  
file_path: ray/python/ray/util/collective/collective_group/base_collective_group.py
imports: from abc import ABCMeta
  from abc import abstractmethod
  from ray.util.collective.types import AllReduceOptions, BarrierOptions, ReduceOptions, AllGatherOptions, BroadcastOptions, ReduceScatterOptions
label_desc: Use image node_id 2 for calling the BaseGroup obj's underlying member method code with example usage: obj.rank() and returns: self