code: def test_reduction(self):
      if self.dtype == numpy.float16:
          pytest.skip("Not supported.")
  
      c = testing.shaped_random((30,), cupy, self.dtype, seed=2)
      c_orig = c.copy()
  
      d = cutensor.reduction(
          self.alpha, self.a, self.mode_a, self.beta, c, ("x",)
      )
  
      assert c is d
      testing.assert_allclose(
          self.alpha * self.a_transposed.sum(axis=(1, 2))
          + self.beta * c_orig,
          d,
          rtol=self.tol,
          atol=self.tol,
      )
  
imports: import gc
  import numpy
  import pytest
  import cupy
  from cupy._core import _routines_linalg
  from cupy import testing
  from cupy.cuda import device
  from cupy.cuda import cutensor
label_desc: Use image node_id 7 for calling the TestCuTensor obj's underlying member method code with example usage: obj.test_reduction() without return types