class_docstr: Environment for distributed training using the `PyTorchJob`_ operator from `Kubeflow`_.
  
  This environment, unlike others, does not get auto-detected and needs to be passed to the Fabric/Trainer
  constructor manually.
  
  .. _PyTorchJob: https://www.kubeflow.org/docs/components/training/pytorch/
  .. _Kubeflow: https://www.kubeflow.org
code: def main_port(self) -> int:
      return int(os.environ["MASTER_PORT"])
  
file_path: pytorch-lightning/src/lightning/fabric/plugins/environments/kubeflow.py
imports: import logging
  import os
  from typing_extensions import override
  from lightning.fabric.plugins.environments.cluster_environment import ClusterEnvironment
label_desc: Use image node_id 3 for calling the KubeflowEnvironment obj's underlying member method code with example usage: obj.main_port() and returns: int