code: def is_probabilistic(estimator):
      """
      Returns True if the given estimator returns a y_score for it's decision
      function, e.g. has ``predict_proba`` or ``decision_function`` methods.
  
      Parameters
      ----------
      estimator : class or instance
          The object to test if is probabilistic, especially a Scikit-Learn
          estimator or Yellowbrick visualizer.
      """
      return any(
          [
              hasattr(estimator, "predict_proba"),
              hasattr(estimator, "decision_function"),
          ]
      )
  
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 6 for calling a global function with example usage: is_probabilistic(estimator) and returns: any