def METHOD_NAME(iris_split_dataset_and_model):
    # Assert
    _, test, clf = iris_split_dataset_and_model
    assert_that(
        calling(RegressionErrorDistribution().run).with_args(test, clf),
        raises(ModelValidationError, 'Check is irrelevant for classification tasks'))