import click


def check_model(ctx, param, reference):
    """ Helper function that checks if the model requires references or not. """
    if reference is None and "wmt-large-qe-estimator-1719" not in ctx.params["model"]:
        raise click.ClickException("Error: Missing option '--reference' / '-r'.")
    return reference