code: def test_2d_count():
      x = np.random.random(100)
      y = np.random.random(100)
      v = np.random.random(100)
  
      count1, binx1, biny1 = binned_statistic_2d(
          x, y, v, "count", bins=5
      )
      count2, binx2, biny2 = np.histogram2d(x, y, bins=5)
  
      assert_array_almost_equal(count1, count2)
      assert_array_almost_equal(binx1, binx2)
      assert_array_almost_equal(biny1, biny2)
  
file_path: astroML/astroML/stats/tests/test_binned_statistic.py
imports: import numpy
  from numpy.testing import assert_array_almost_equal
  from astroML.stats import binned_statistic, binned_statistic_2d, binned_statistic_dd
label_desc: Use image node_id 5 for calling a global function with example usage: test_2d_count() without return types