code: def wrap(estimator, estimator_type=None):
      """
      Wrap a third-party estimator that implements portions of the scikit-learn API to
      make it available to Yellowbrick visualizers. If the Yellowbrick visualizer cannot
      succeed, then a sensible error is raised instead.
  
      Parameters
      ----------
      estimator : object
          The non-sklearn estimator to wrap and use for Visualizers
  
      estimator_type : str, optional
          One of "classifier", "regressor", "clusterer", "DensityEstimator", or
          "outlier_detector" that allows the contrib estimator to pass the scikit-learn
          ``is_classifier``, etc. functions. If not specified, the _estimator_type attr
          is passed through to the underlying estimator.
      """
      return ContribEstimator(estimator, estimator_type)
  
file_path: yellowbrick/yellowbrick/contrib/wrapper.py
imports: from yellowbrick.exceptions import YellowbrickAttributeError
label_desc: Use image node_id 1 for calling a global function with example usage: wrap(estimator, estimator_type) and returns: ContribEstimator