code: def is_regressor(estimator):
      """
      Returns True if the given estimator is (probably) a regressor.
  
      Parameters
      ----------
      estimator : class or instance
          The object to test if it is a Scikit-Learn clusterer, especially a
          Scikit-Learn estimator or Yellowbrick visualizer
  
      See also
      --------
      is_regressor
          `sklearn.is_regressor() <https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/base.py#L531>`_
      """
  
      # Test the _estimator_type property
      return getattr(estimator, "_estimator_type", None) == "regressor"
  
file_path: yellowbrick/yellowbrick/utils/types.py
imports: import inspect
  import numpy
  from sklearn.base import BaseEstimator
  from yellowbrick.contrib.wrapper import ContribEstimator
label_desc: Use image node_id 3 for calling a global function with example usage: is_regressor(estimator) and returns: unknown