code: def main(
      args: Namespace, script_args: Optional[List[str]] = None
  ) -> None:
      _set_env_variables(args)
      _torchrun_launch(args, script_args or [])
  
file_path: pytorch-lightning/src/lightning/fabric/cli.py
imports: import logging
  import os
  import re
  from argparse import Namespace
  from typing import Any, List, Optional
  from lightning_utilities.core.imports import RequirementCache
  from typing_extensions import get_args
  from lightning.fabric.accelerators import CPUAccelerator, CUDAAccelerator, MPSAccelerator
  from lightning.fabric.plugins.precision.precision import _PRECISION_INPUT_STR, _PRECISION_INPUT_STR_ALIAS
  from lightning.fabric.strategies import STRATEGY_REGISTRY
  from lightning.fabric.utilities.device_parser import _parse_gpu_ids
  from lightning.fabric.utilities.distributed import _suggested_max_num_threads
label_desc: Use image node_id 5 for calling a global function with example usage: main(args, script_args) without return types