code: def _set_env_variables(args: Namespace) -> None:
      """Set the environment variables for the new processes.
  
      The Fabric connector will parse the arguments set here.
  
      """
      os.environ["LT_CLI_USED"] = "1"
      if args.accelerator is not None:
          os.environ["LT_ACCELERATOR"] = str(args.accelerator)
      if args.strategy is not None:
          os.environ["LT_STRATEGY"] = str(args.strategy)
      os.environ["LT_DEVICES"] = str(args.devices)
      os.environ["LT_NUM_NODES"] = str(args.num_nodes)
      if args.precision is not None:
          os.environ["LT_PRECISION"] = str(args.precision)
  
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 2 for calling a global function with example usage: _set_env_variables(args) without return types