def test_model_finder_multiclass_create_scoring_multiclass(
        model_finder_multiclass, input_func, expected_results
):
    """Testing if creating closures (and adding them to regular scorings) for multiclass scorings works correctly."""
    y_actual = 1
    y_predicted = 2

    def plus_one(y_true, y_score):
        return y_true + y_score + 1

    def plus_two(y_true, y_score):
        return y_true + y_score + 2

    model_finder_multiclass._scoring_multiclass = [plus_one, plus_two]
    model_finder_multiclass._scoring_multiclass_parametrized = [input_func]

    scorings = model_finder_multiclass._create_scoring_multiclass()
    actual_results = []
    for sc in scorings:
        actual_results.append(sc(y_actual, y_predicted))

    assert actual_results == expected_results