class_docstr: Test the BalancedBinningReference visualizer
docstr: Test Histogram on a NumPy array
code: def test_numpy_bins(self):
      """
      Test Histogram on a NumPy array
      """
      # Load the data from the fixture
      data = load_occupancy(return_dataset=True)
      X, y = data.to_numpy()
  
      visualizer = BalancedBinningReference()
      visualizer.fit(y)
      visualizer.finalize()
      self.assert_images_similar(visualizer, tol=0.5)
  
file_path: yellowbrick/tests/test_target/test_binning.py
imports: import pytest
  from yellowbrick.target.binning import *
  from yellowbrick.datasets import load_occupancy
  from tests.base import VisualTestCase
label_desc: Use image node_id 1 for calling the TestBalancedBinningReference obj's underlying member method code with example usage: obj.test_numpy_bins() without return types