def METHOD_NAME(pretrained=True):
    """Load and return a fitted regression model to predict the quality in the Wine Quality dataset.
    Returns
    -------
    model : Joblib
        the model/pipeline that was trained on the Wine Quality dataset.
    """
    if sklearn.__version__ == _MODEL_VERSION and pretrained:
        with urlopen(_MODEL_URL) as f:
            model = joblib.load(f)
    else:
        model = _build_model()
        train, _ = load_data()
        model.fit(train.data[train.features], train.data[train.label_name])
    return model