class_docstr: Test FeatureImportances visualizer
docstr: Assert that the fit process makes label indices
docstr_tok: ["Assert","that","the","fit","process","makes","label","indices"]
code: def test_fit_makes_labels(self):
      """
      Assert that the fit process makes label indices
      """
      model = MockEstimator()
      model.make_importance_param(value=np.linspace(0, 1, 10))
  
      visualizer = FeatureImportances(model)
      visualizer.fit(np.random.rand(100, 10), np.random.rand(100))
  
      # Don't have to worry about label space since importances are linspace
      assert hasattr(visualizer, "features_")
      npt.assert_array_equal(np.arange(10), visualizer.features_)
  
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 13 for calling the TestFeatureImportancesVisualizer obj's underlying member method code with example usage: obj.test_fit_makes_labels() without return types