docstr: Assert that only clustering estimators can be passed to cluster viz
docstr_tok: ["Assert","that","only","clustering","estimators","can","be","passed","to","cluster","viz"]
code: def test_clusterer_enforcement(self, model):
      """
      Assert that only clustering estimators can be passed to cluster viz
      """
      try:
          ClusteringScoreVisualizer(model())
      except YellowbrickTypeError:
          self.fail("could not pass clustering estimator to visualizer")
  
file_path: yellowbrick/tests/test_cluster/test_base.py
imports: import pytest
  from yellowbrick.exceptions import YellowbrickTypeError
  from yellowbrick.cluster.base import ClusteringScoreVisualizer
  from sklearn.svm import SVC, SVR
  from sklearn.ensemble import RandomForestClassifier
  from sklearn.cluster import MeanShift, DBSCAN, Birch
  from sklearn.linear_model import Ridge, RidgeCV, LinearRegression
  from sklearn.cluster import KMeans, MiniBatchKMeans, AffinityPropagation
label_desc: Use image node_id 2 for calling the TestClusterBase obj's underlying member method code with example usage: obj.test_clusterer_enforcement(model) without return types