code: def test_input_validation_errors(
      pyplot, kwargs, error_msg, fitted_clf
  ):
      """Check input validation from_estimator."""
      with pytest.raises(ValueError, match=error_msg):
          DecisionBoundaryDisplay.from_estimator(
              fitted_clf, X, **kwargs
          )
  
imports: import warnings
  import numpy
  import pytest
  from sklearn.base import BaseEstimator, ClassifierMixin
  from sklearn.datasets import load_diabetes, load_iris, make_classification, make_multilabel_classification
  from sklearn.ensemble import IsolationForest
  from sklearn.inspection import DecisionBoundaryDisplay
  from sklearn.inspection._plot.decision_boundary import _check_boundary_response_method
  from sklearn.linear_model import LogisticRegression
  from sklearn.preprocessing import scale
  from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
  from sklearn.utils._testing import assert_allclose, assert_array_equal
label_desc: Use image node_id 8 for calling a global function with example usage: test_input_validation_errors(pyplot, kwargs, error_msg, fitted_clf) without return types