code: def testGradient(self):
      x_shape = [2, 3, 4, 3, 2]
      f_shape = [3, 3, 3, 2, 2]
      y_shape = [2, 6, 8, 6, 2]
      strides = [1, 2, 2, 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.session(), self.test_scope():
          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.conv3d_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("conv3d_transpose gradient err = %g " % err)
      err_tolerance = 0.001
      self.assertLess(err, err_tolerance)
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.compiler.tests import test_utils
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_nn_ops
  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 googletest
label_desc: Use image node_id 4 for calling the Conv3DTransposeTest obj's underlying member method code with example usage: obj.testGradient() without return types