code: def test_incompatible_shapes_raises(self):
      filter_shape = (3, 3)
  
      # Inconsistent channels in for kernel and image.
      c_in_kernel = 6
      c_in_image = 8
      c_out = 12
  
      k_dim = np.prod(filter_shape) * c_in_kernel
      kernel = self.make_input(
          tf.ones((2, k_dim, c_out), dtype=self.dtype)
      )
      x = self.make_input(
          tf.ones((3, 2, 16, 16, c_in_image), dtype=self.dtype)
      )
      conv_fn = self.make_conv_fn(
          filter_shape, strides=1, padding="SAME", dilations=1
      )
  
      with self.assertRaisesMaybeStaticError(
          "size of the rightmost dimension"
      ):
          self.evaluate(conv_fn(x, kernel))
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.experimental.nn.util import convolution_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.internal import tf_keras
label_desc: Use image node_id 4 for calling the _BatchedConvTransposeTest obj's underlying member method code with example usage: obj.test_incompatible_shapes_raises() without return types