def METHOD_NAME(
    breast_cancer_local,
    wine_local,
    logistic_regression_binary_pipeline,
    logistic_regression_multiclass_pipeline,
    problem_type,
    use_ints,
):
    if problem_type == "binary":
        X, y = breast_cancer_local
        pipeline = logistic_regression_binary_pipeline
        if use_ints:
            y = y.map({"malignant": 0, "benign": 1})
            answer = [0, 1]
        else:
            answer = ["benign", "malignant"]
    elif problem_type == "multi":
        X, y = wine_local
        pipeline = logistic_regression_multiclass_pipeline
        if use_ints:
            y = y.map({"class_0": 0, "class_1": 1, "class_2": 2})
            answer = [0, 1, 2]
        else:
            answer = ["class_0", "class_1", "class_2"]
    # Check that .classes_ is None before fitting
    assert pipeline.classes_ is None
    pipeline.fit(X, y)
    assert pipeline.classes_ == answer