class_docstr: Environment for PTL training on a Ray cluster.
class_docstr_tok: ["Environment","for","PTL","training","on","a","Ray","cluster","."]
docstr: The number of processes across all devices and nodes.
docstr_tok: ["The","number","of","processes","across","all","devices","and","nodes","."]
code: def world_size(self) -> int:
      """The number of processes across all devices and nodes."""
      return self._world_size
  
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 6 for calling the RayEnvironment obj's underlying member method code with example usage: obj.world_size() and returns: self