code: def test_1d_sum(self):
      x = self.x
      v = self.v
  
      sum1, edges1, bc = binned_statistic(x, v, "sum", bins=10)
      sum2, edges2 = np.histogram(x, bins=10, weights=v)
  
      assert_allclose(sum1, sum2)
      assert_allclose(edges1, edges2)
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy.testing import assert_allclose
  from scipy.stats import binned_statistic, binned_statistic_2d, binned_statistic_dd
  from scipy._lib.six import u
  from .common_tests import check_named_results
label_desc: Use image node_id 5 for calling the TestBinnedStatistic obj's underlying member method code with example usage: obj.test_1d_sum() without return types