def METHOD_NAME(
    model: Optional["Module"] = None,  # noqa: F821
    method: bool = True,
    lr_func: str = "linear",
    **recipe_args,
) -> str:
    """
    Convenience function to create a quantization recipe
    :param model: an instantiated PyTorch Module, or the local path to a torch.jit
        loadable *.pt file, if supplied then the recipe is built according to this
        architecture
    :param method: `True` if quantization needs to be applied else `False`. Defaults
        to `True`
    :param lr_func: the learning rate schedule function. Defaults to `linear`
    :param recipe_args: additional arguments to pass to recipe_template
    :return: a valid recipe
    """
    return recipe_template(
        model=model,
        pruning=False,
        quantization=method,
        lr=lr_func,
        **recipe_args,
    )