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 inside of the current node.
docstr_tok: ["The","rank","(","index",")","of","the","currently","running","process","inside","of","the","current","node","."]
code: def local_rank(self) -> int:
      """The rank (index) of the currently running process inside of the current node."""
      return int(os.environ.get("LOCAL_RANK", 0))
  
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 12 for calling the RayEnvironment obj's underlying member method code with example usage: obj.local_rank() and returns: int