code: def testGradient(self):
      self.skipTest("b/262851489: Fix nightly build for GPU.")
      x_shape = [2, 4, 3]
      f_shape = [3, 2, 3]
      y_shape = [2, 8, 2]
      strides = [1, 2, 1]
      np.random.seed(1)  # Make it reproducible.
      x_val = np.random.random_sample(x_shape).astype(np.float64)
      f_val = np.random.random_sample(f_shape).astype(np.float64)
      with self.cached_session():
          x = constant_op.constant(
              x_val, name="x", dtype=dtypes.float32
          )
          f = constant_op.constant(
              f_val, name="f", dtype=dtypes.float32
          )
          output = nn_ops.conv1d_transpose(
              x, f, y_shape, strides=strides, padding="SAME"
          )
          err = gradient_checker.compute_gradient_error(
              [x, f], [x_shape, f_shape], output, y_shape
          )
      print("conv1d_transpose gradient err = %g " % err)
      err_tolerance = 0.0005
      self.assertLess(err, err_tolerance)
  
file_path: tensorflow/tensorflow/python/kernel_tests/nn_ops/conv1d_transpose_test.py
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import gradient_checker
  from tensorflow.python.ops import nn_ops
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the Conv1DTransposeTest obj's underlying member method code with example usage: obj.testGradient() without return types