code: def explain_weights_ovr(ovr, **kwargs):
      estimator = ovr.estimator
      func = explain_weights.dispatch(estimator.__class__)
      return func(ovr, **kwargs)
  
imports: from __future__ import absolute_import
  import numpy
  from sklearn.base import BaseEstimator, RegressorMixin
  from sklearn.pipeline import Pipeline
  from sklearn.linear_model import ElasticNet, ElasticNetCV, HuberRegressor, Lars, LassoCV, LinearRegression, LogisticRegression, LogisticRegressionCV, OrthogonalMatchingPursuit, OrthogonalMatchingPursuitCV, PassiveAggressiveClassifier, PassiveAggressiveRegressor, Perceptron, Ridge, RidgeClassifier, RidgeClassifierCV, RidgeCV, SGDClassifier, SGDRegressor, TheilSenRegressor
  from sklearn.multiclass import OneVsRestClassifier
  from sklearn.svm import LinearSVC, LinearSVR, SVC, SVR, NuSVC, NuSVR, OneClassSVM
  from sklearn.naive_bayes import BernoulliNB, MultinomialNB
  from sklearn.ensemble import GradientBoostingClassifier, GradientBoostingRegressor, AdaBoostClassifier, AdaBoostRegressor, RandomForestClassifier, RandomForestRegressor, ExtraTreesClassifier, ExtraTreesRegressor
  from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
  from eli5.base import Explanation, TargetExplanation, FeatureImportances
  from eli5.base_utils import singledispatch
  from eli5._feature_weights import get_top_features
  from eli5.utils import argsort_k_largest_positive, get_target_display_names
  from eli5.sklearn.unhashing import handle_hashing_vec, is_invhashing
  from eli5.sklearn.treeinspect import get_tree_info
  from eli5.sklearn.utils import get_coef, is_multiclass_classifier, is_multitarget_regressor, get_feature_names, get_feature_names_filtered, get_default_target_names
  from eli5.explain import explain_weights
  from eli5.transform import transform_feature_names
  from eli5._feature_importances import get_feature_importances_filtered, get_feature_importance_explanation
  from .permutation_importance import PermutationImportance
label_desc: Use image node_id 4 for calling a global function with example usage: explain_weights_ovr(ovr) and returns: func