class_docstr: Test ScatterViz
docstr: Assert only two features allowed for scatter visualizer if not in init
docstr_tok: ["Assert","only","two","features","allowed","for","scatter","visualizer","if","not","in","init"]
code: def test_scatter_requires_two_features_in_numpy_matrix(self):
      """
      Assert only two features allowed for scatter visualizer if not in init
      """
      visualizer = ScatterViz()
      with pytest.raises(
          YellowbrickValueError, match="only accepts two features"
      ):
          visualizer.fit_transform(self.X, self.y)
  
imports: import pytest
  import numpy
  from unittest import mock
  from tests.base import VisualTestCase
  from yellowbrick.contrib.scatter import *
  from yellowbrick.datasets import load_occupancy
  from yellowbrick.exceptions import YellowbrickValueError
  from yellowbrick.style import palettes
label_desc: Use image node_id 8 for calling the TestScatterViz obj's underlying member method code with example usage: obj.test_scatter_requires_two_features_in_numpy_matrix() without return types