docstr: Assert that non-cluster models raise a TypeError for cluster visualizers
docstr_tok: ["Assert","that","non-cluster","models","raise","a","TypeError","for","cluster","visualizers"]
code: def test_clusterer_enforcement_raises(self, model):
      """
      Assert that non-cluster models raise a TypeError for cluster visualizers
      """
      with pytest.raises(YellowbrickTypeError):
          ClusteringScoreVisualizer(model())
  
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 1 for calling the TestClusterBase obj's underlying member method code with example usage: obj.test_clusterer_enforcement_raises(model) without return types