class_docstr: Environment for PTL training on a Ray cluster.
class_docstr_tok: ["Environment","for","PTL","training","on","a","Ray","cluster","."]
docstr: The rank (index) of the currently running process across all nodes and devices.
docstr_tok: ["The","rank","(","index",")","of","the","currently","running","process","across","all","nodes","and","devices","."]
code: def global_rank(self) -> int:
      """The rank (index) of the currently running process across all nodes and devices."""
      return self._global_rank
  
file_path: BigDL/python/nano/src/bigdl/nano/deps/ray/ray_envbase.py
imports: import os
  from pytorch_lightning.plugins.environments import ClusterEnvironment
  from pytorch_lightning.utilities import rank_zero_only
label_desc: Use image node_id 8 for calling the RayEnvironment obj's underlying member method code with example usage: obj.global_rank() and returns: self