def METHOD_NAME(tmpdir):
    """This tests validates the payload api can be used to transfer return values from a work to another."""
    with mock.patch("lightning.app.storage.path._storage_root_dir", return_value=pathlib.Path(tmpdir)):
        app = LightningApp(Flow(), log_level="debug")
        MultiProcessRuntime(app, start_server=False).dispatch()
    os.remove("value_all")
    os.remove("value_b")
    os.remove("value_c")