code: def conv1d_transpose_via_conv2d(
      value, kernel, tensor_with_output_shape, stride, padding
  ):
      return tf.squeeze(
          tf.nn.conv2d_transpose(
              value=tf.expand_dims(value, 1),
              filter=kernel[None, :, :, :],
              # Note: tf.shape(var) doesn't give the same result
              # as var.get_shape(); one works, the other doesn't...
              output_shape=tf.shape(
                  tf.expand_dims(tensor_with_output_shape, 1)
              ),
              strides=(1, 1, stride, 1),
              padding=padding,
          ),
          1,
      )
  
file_path: deeplift/deeplift/layers/helper_functions.py
imports: import tensorflow
  from deeplift.util import NEAR_ZERO_THRESHOLD
label_desc: Use image node_id 6 for calling a global function with example usage: conv1d_transpose_via_conv2d(value, kernel, tensor_with_output_shape, stride, padding) and returns: tf