class_docstr: Test the ProjectionVisualizer base class
class_docstr_tok: ["Test","the","ProjectionVisualizer","base","class"]
docstr: Validate projection hyperparameter
docstr_tok: ["Validate","projection","hyperparameter"]
code: def test_wrong_projection_dimensions(self, projection):
      """
      Validate projection hyperparameter
      """
      msg = "Projection dimensions must be either 2 or 3"
      with pytest.raises(YellowbrickValueError, match=msg):
          MockVisualizer(projection=projection)
  
imports: import pytest
  import numpy.testing
  import matplotlib.pyplot
  from yellowbrick.features.projection import *
  from yellowbrick.exceptions import YellowbrickValueError
  from tests.base import VisualTestCase
  from unittest import mock
  from sklearn.decomposition import PCA
  from sklearn.pipeline import Pipeline
  from sklearn.preprocessing import StandardScaler
label_desc: Use image node_id 8 for calling the TestProjectionVisualizer obj's underlying member method code with example usage: obj.test_wrong_projection_dimensions(projection) without return types