code: def test_broadcasting_explicitly_unsupported(self):
      old_batch_shape = [4]
      new_batch_shape = [1, 4, 1]
      rate_ = self.dtype([1, 10, 2, 20])
  
      rate = tf1.placeholder_with_default(
          rate_, shape=old_batch_shape if self.is_static_shape else None
      )
      poisson_4 = poisson.Poisson(rate, validate_args=True)
      new_batch_shape_ph = (
          tf.constant(np.int32(new_batch_shape))
          if self.is_static_shape
          else tf1.placeholder_with_default(
              np.int32(new_batch_shape), shape=None
          )
      )
      poisson_141_reshaped = batch_reshape.BatchReshape(
          poisson_4, new_batch_shape_ph, validate_args=True
      )
  
      x_4 = self.dtype([2, 12, 3, 23])
      x_114 = self.dtype([2, 12, 3, 23]).reshape(1, 1, 4)
  
      if self.is_static_shape or tf.executing_eagerly():
          with self.assertRaisesRegexp(
              NotImplementedError, "too few batch and event dims"
          ):
              poisson_141_reshaped.log_prob(x_4)
          with self.assertRaisesRegexp(
              NotImplementedError, "unexpected batch and event shape"
          ):
              poisson_141_reshaped.log_prob(x_114)
          return
  
      with self.assertRaisesOpError("too few batch and event dims"):
          self.evaluate(poisson_141_reshaped.log_prob(x_4))
  
      with self.assertRaisesOpError("unexpected batch and event shape"):
          self.evaluate(poisson_141_reshaped.log_prob(x_114))
  
imports: import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.distributions import batch_reshape
  from tensorflow_probability.python.distributions import mvn_diag
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.distributions import poisson
  from tensorflow_probability.python.distributions import triangular
  from tensorflow_probability.python.distributions import uniform
  from tensorflow_probability.python.distributions import wishart
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.util.deferred_tensor import DeferredTensor
label_desc: Use image node_id 13 for calling the _BatchReshapeTest obj's underlying member method code with example usage: obj.test_broadcasting_explicitly_unsupported() without return types