code: def assert_predicted_class_used(clf, X):
      """Check that predicted classes are used for explanations
      of X predictions"""
      y_pred = clf.predict(X)
      return assert_class_used(clf, X, y_pred)
  
imports: from __future__ import absolute_import
  from functools import partial
  from pprint import pprint
  import re
  from typing import List
  import pytest
  import numpy
  from sklearn.base import BaseEstimator
  from sklearn.datasets import make_regression
  from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer
  from sklearn.ensemble import ExtraTreesClassifier, ExtraTreesRegressor, GradientBoostingClassifier, GradientBoostingRegressor, RandomForestClassifier, RandomForestRegressor
  from sklearn.linear_model import ElasticNet, ElasticNetCV, HuberRegressor, Lars, LarsCV, Lasso, LassoCV, LassoLars, LassoLarsCV, LassoLarsIC, LinearRegression, LogisticRegression, LogisticRegressionCV, OrthogonalMatchingPursuit, OrthogonalMatchingPursuitCV, PassiveAggressiveClassifier, PassiveAggressiveRegressor, Perceptron, Ridge, RidgeClassifier, RidgeClassifierCV, RidgeCV, SGDClassifier, SGDRegressor, TheilSenRegressor
  from sklearn.svm import LinearSVC, LinearSVR, SVC, SVR, NuSVC, NuSVR, OneClassSVM
  from sklearn.multiclass import OneVsRestClassifier
  from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
  from eli5 import explain_prediction, explain_prediction_sklearn
  from eli5.base import Explanation
  from eli5.formatters import format_as_text, fields
  from eli5.sklearn.utils import has_intercept
  from .utils import format_as_all, strip_blanks, get_all_features, check_targets_scores, SGD_KWARGS
label_desc: Use image node_id 7 for calling a global function with example usage: assert_predicted_class_used(clf, X) and returns: assert_class_used