def METHOD_NAME():
    launcher = _MultiProcessingLauncher(strategy=Mock(), start_method="spawn")
    with mock.patch(
        "lightning.fabric.strategies.launchers.multiprocessing.mp.current_process",
        return_value=Mock(_inheriting=True),  # pretend that main is importing itself
    ), pytest.raises(RuntimeError, match="requires that your script guards the main"):
        launcher.launch(function=Mock())