code: def test_sum_to(self):
      n_elems = numpy.prod(self.in_shape)
      x = numpy.arange(1, n_elems + 1, dtype=numpy.float32).reshape(
          self.in_shape
      )
      y_actual = array.sum_to(x, self.out_shape)
  
      y_expect = numpy.zeros(self.out_shape, x.dtype)
      for dst, src in numpy.nditer(
          [y_expect, x], ["reduce_ok"], [["readwrite"], ["readonly"]]
      ):
          dst += src
      numpy.testing.assert_array_equal(y_expect, y_actual)
  
file_path: chainer/tests/chainer_tests/utils_tests/test_array.py
imports: import unittest
  import numpy
  from chainer import testing
  from chainer.utils import array
label_desc: Use image node_id 1 for calling the TestSumTo obj's underlying member method code with example usage: obj.test_sum_to() without return types