code: def test_contraction(self):
      compute_capability = int(device.get_compute_capability())
      if compute_capability < 70 and self.dtype == numpy.float16:
          pytest.skip("Not supported.")
  
      d = cutensor.contraction(
          self.alpha,
          self.a,
          self.mode_a,
          self.b,
          self.mode_b,
          self.beta,
          self.c,
          self.mode_c,
      )
  
      assert self.c is d
      testing.assert_allclose(
          self.alpha * self.a_transposed * self.b_transposed
          + self.beta * self.c_transposed,
          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 6 for calling the TestCuTensor obj's underlying member method code with example usage: obj.test_contraction() without return types