class_docstr: Test FeatureImportances visualizer
docstr: Test the expected parameters can be found
docstr_tok: ["Test","the","expected","parameters","can","be","found"]
code: def test_find_importances_param(self):
      """
      Test the expected parameters can be found
      """
      params = ("feature_importances_", "coef_")
  
      for param in params:
          model = MockEstimator()
          model.make_importance_param(param, "foo")
          visualizer = FeatureImportances(model)
  
          assert hasattr(model, param), "expected '{}' missing".format(
              param
          )
          for oparam in params:
              if oparam == param:
                  continue
              assert not hasattr(
                  model, oparam
              ), "unexpected '{}'".format(oparam)
  
          importances = visualizer._find_importances_param()
          assert importances == "foo"
  
imports: import pytest
  import numpy
  import numpy.testing
  import matplotlib.pyplot
  from yellowbrick.exceptions import NotFitted
  from yellowbrick.model_selection.importances import *
  from yellowbrick.datasets import load_occupancy, load_concrete
  from sklearn.datasets import load_iris
  from sklearn.ensemble import RandomForestClassifier
  from sklearn.ensemble import GradientBoostingClassifier
  from sklearn.base import BaseEstimator, ClassifierMixin
  from sklearn.linear_model import LogisticRegression, Lasso
  from sklearn.impute import SimpleImputer
  from sklearn.pipeline import Pipeline
  from unittest import mock
  from tests.base import VisualTestCase
label_desc: Use image node_id 16 for calling the TestFeatureImportancesVisualizer obj's underlying member method code with example usage: obj.test_find_importances_param() without return types