docstr: Test that an estimator can be forced through
docstr_tok: ["Test","that","an","estimator","can","be","forced","through"]
code: def test_force_estimator(self):
      """
      Test that an estimator can be forced through
      """
      with pytest.raises(YellowbrickTypeError):
          ClusteringScoreVisualizer(LinearRegression())
  
      try:
          ClusteringScoreVisualizer(
              LinearRegression(), force_model=True
          )
      except YellowbrickTypeError as e:
          pytest.fail("type error was raised incorrectly: {}".format(e))
  
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 3 for calling the TestClusterBase obj's underlying member method code with example usage: obj.test_force_estimator() without return types