def METHOD_NAME(
    pruning: str, quantization: bool, kwargs, model: Optional[Module]
):
    actual = recipe_template(
        pruning=pruning, quantization=quantization, model=model, **kwargs
    )
    assert actual
    manager = ScheduledModifierManager.from_yaml(file_path=actual)
    manager.apply(module=model)