class_docstr: Test ScatterViz
docstr: Test that the user can supply an alpha param on instantiation
docstr_tok: ["Test","that","the","user","can","supply","an","alpha","param","on","instantiation"]
code: def test_alpha_param(self):
      """
      Test that the user can supply an alpha param on instantiation
      """
      # Instantiate a scatter plot and provide a custom alpha
      visualizer = ScatterVisualizer(alpha=0.7, features=["a", "b"])
  
      # Test param gets set correctly
      assert visualizer.alpha == 0.7
  
      # Mock ax and fit the visualizer
      visualizer.ax = mock.MagicMock(autospec=True)
      visualizer.fit(self.X[:, :2], self.y)
  
      # Test that alpha was passed to the scatter plot
      _, scatter_kwargs = visualizer.ax.scatter.call_args
      assert "alpha" in scatter_kwargs
      assert scatter_kwargs["alpha"] == 0.7
  
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 10 for calling the TestScatterViz obj's underlying member method code with example usage: obj.test_alpha_param() without return types