code: def test_elementwise_trinary(self):
      d = cutensor.elementwise_trinary(
          self.alpha,
          self.a,
          self.mode_a,
          self.beta,
          self.b,
          self.mode_b,
          self.gamma,
          self.c,
          self.mode_c,
          op_A=ct.OP_SQRT,
          op_B=ct.OP_TANH,
          op_C=ct.OP_COS,
          op_AB=ct.OP_ADD,
          op_ABC=ct.OP_MUL,
      )
  
      testing.assert_allclose(
          (
              self.alpha * cupy.sqrt(self.a_transposed)
              + self.beta * cupy.tanh(self.b_transposed)
          )
          * self.gamma
          * cupy.cos(self.c),
          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 2 for calling the TestCuTensorDescriptor obj's underlying member method code with example usage: obj.test_elementwise_trinary() without return types