code: def test_dd_bincode(self):
      X = self.X[:20]
      v = self.v[:20]
  
      count1, edges1, bc = binned_statistic_dd(X, v, "count", bins=3)
      bc2 = np.array(
          [
              63,
              33,
              86,
              83,
              88,
              67,
              57,
              33,
              42,
              41,
              82,
              83,
              92,
              32,
              36,
              91,
              43,
              87,
              81,
              81,
          ]
      )
  
      bcount = [(bc == i).sum() for i in np.unique(bc)]
  
      assert_allclose(bc, bc2)
      count1adj = count1[count1.nonzero()]
      assert_allclose(bcount, count1adj)
  
imports: import numpy
  from numpy.testing import assert_allclose
  from pytest import raises
  from scipy.stats import binned_statistic, binned_statistic_2d, binned_statistic_dd
  from scipy._lib._util import check_random_state
  from .common_tests import check_named_results
label_desc: Use image node_id 36 for calling the TestBinnedStatistic obj's underlying member method code with example usage: obj.test_dd_bincode() without return types