class_docstr: Test the DroppingCurve visualizer
docstr: Test that visualizer can handle sklearn pipeline as model input
docstr_tok: ["Test","that","visualizer","can","handle","sklearn","pipeline","as","model","input"]
code: def test_pipeline_as_model_input(self):
      """
      Test that visualizer can handle sklearn pipeline as model input
      """
      X, y = load_mushroom(return_dataset=True).to_numpy()
      X = OneHotEncoder().fit_transform(X).toarray()
  
      model = Pipeline(
          [("minmax", MinMaxScaler()), ("nb", BernoulliNB())]
      )
  
      oz = DroppingCurve(model, random_state=42)
      oz.fit(X, y)
      oz.finalize()
      self.assert_images_similar(oz, tol=12)
  
imports: import sys
  import pytest
  import numpy
  from unittest.mock import patch
  from tests.base import VisualTestCase
  from sklearn.svm import SVC
  from sklearn.naive_bayes import BernoulliNB, MultinomialNB
  from sklearn.tree import DecisionTreeRegressor
  from sklearn.preprocessing import OneHotEncoder, MinMaxScaler
  from sklearn.neighbors import KNeighborsClassifier
  from sklearn.model_selection import ShuffleSplit, StratifiedKFold
  from sklearn.pipeline import Pipeline
  from yellowbrick.datasets import load_mushroom
  from yellowbrick.exceptions import YellowbrickValueError
  from yellowbrick.model_selection import DroppingCurve, dropping_curve
label_desc: Use image node_id 10 for calling the TestDroppingCurve obj's underlying member method code with example usage: obj.test_pipeline_as_model_input() without return types