def METHOD_NAME(fabric, *args: Any, **kwargs: Any):
    kwargs["devices"] = nprocs
    kwargs["num_nodes"] = num_nodes
    if any(acc.is_available() for acc in mps_accelerators):
        old_acc_value = kwargs.get("accelerator", "auto")
        kwargs["accelerator"] = "cpu"
        if old_acc_value != kwargs["accelerator"]:
            warnings.warn("Forcing `accelerator=cpu` as MPS does not support distributed training.")
    else:
        kwargs["accelerator"] = "auto"
    strategy = kwargs.get("strategy", None)
    if strategy:
        if isinstance(strategy, str):
            if strategy == "ddp_spawn":
                strategy = "ddp"
            elif strategy == "ddp_sharded_spawn":
                strategy = "ddp_sharded"
        elif isinstance(strategy, tuple(strategies)) and strategy._start_method in ("spawn", "fork"):
            raise ValueError("DDP Spawned strategies aren't supported yet.")
    kwargs["strategy"] = strategy
    return {}, args, kwargs