class_docstr: Environment for PTL training on a Ray cluster.
class_docstr_tok: ["Environment","for","PTL","training","on","a","Ray","cluster","."]
docstr: Set global rank.
docstr_tok: ["Set","global","rank","."]
code: def set_global_rank(self, rank: int) -> None:
      """Set global rank."""
      self._global_rank = rank
      rank_zero_only.rank = 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 9 for calling the RayEnvironment obj's underlying member method code with example usage: obj.set_global_rank(rank) without return types