code: def test_tanh_axpy(self):
      a = constant_op.constant(3.0)
      x = random_ops.random_uniform([4, 5])
      y = random_ops.random_uniform([6, 5])
      n = x.shape[0]
  
      def loop_fn(i):
          return math_ops.tanh(
              a * array_ops.gather(x, i) + array_ops.gather(y, i)
          )
  
      self._test_loop_fn(loop_fn, n)
  
imports: import itertools
  from absl.testing import parameterized
  from tensorflow.python.eager import backprop
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import clip_ops
  from tensorflow.python.ops import linalg_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import special_math_ops
  from tensorflow.python.ops import tensor_array_grad
  from tensorflow.python.ops.parallel_for import control_flow_ops
  from tensorflow.python.ops.parallel_for.test_util import PForTestCase
  from tensorflow.python.platform import test
label_desc: Use image node_id 27 for calling the MathTest obj's underlying member method code with example usage: obj.test_tanh_axpy() and returns: math_ops