class_docstr: Specification of a cluster environment.
class_docstr_tok: ["Specification","of","a","cluster","environment","."]
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."""
  
file_path: pytorch-lightning/src/lightning/fabric/plugins/environments/cluster_environment.py
imports: from abc import ABC, abstractmethod
label_desc: Use image node_id 5 for calling the ClusterEnvironment obj's underlying member method code with example usage: obj.world_size() without return types