code: def _check_missing_main_guard() -> None:
      """Raises an exception if the ``__name__ == "__main__"`` guard is missing."""
      if not getattr(mp.current_process(), "_inheriting", False):
          return
      message = dedent(
          """
          Launching multiple processes with the 'spawn' start method requires that your script guards the main
          function with an `if __name__ == \"__main__\"` clause. For example:
  
          def main():
              # Put your code here
              ...
  
          if __name__ == "__main__":
              main()
  
          Alternatively, you can run with `strategy="ddp"` to avoid this error.
          """
      )
      raise RuntimeError(message)
  
imports: import itertools
  import os
  from dataclasses import dataclass
  from multiprocessing.queues import SimpleQueue
  from textwrap import dedent
  from typing import TYPE_CHECKING, Any, Callable, Dict, Literal, Optional
  import torch
  import torch.backends.cudnn
  import torch.multiprocessing
  from lightning_utilities import apply_to_collection
  from torch.nn import Module
  from typing_extensions import override
  from lightning.fabric.accelerators.cpu import CPUAccelerator
  from lightning.fabric.strategies.launchers.launcher import _Launcher
  from lightning.fabric.utilities.apply_func import move_data_to_device
  from lightning.fabric.utilities.distributed import _set_num_threads_if_needed
  from lightning.fabric.utilities.imports import _IS_INTERACTIVE
  from lightning.fabric.utilities.seed import _collect_rng_states, _set_rng_states
label_desc: Use image node_id 3 for calling a global function with example usage: _check_missing_main_guard() without return types