code: def test_reduction(self):
      c = testing.shaped_random((30,), cupy, numpy.float32, seed=2)
      c_orig = c.copy()
  
      d = cutensor.reduction(
          self.alpha,
          self.a,
          self.mode_a,
          self.beta,
          c,
          ("x",),
          op_A=ct.OP_COS,
          op_C=ct.OP_TANH,
          op_reduce=ct.OP_MAX,
      )
  
      assert c is d
      testing.assert_allclose(
          self.alpha * cupy.cos(self.a_transposed).max(axis=(1, 2))
          + self.beta * cupy.tanh(c_orig),
          d,
          rtol=1e-6,
          atol=1e-6,
      )
  
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 4 for calling the TestCuTensorDescriptor obj's underlying member method code with example usage: obj.test_reduction() without return types