code: def test_bcast_to_errors(self):
      with self.assertRaisesRegexp(ValueError, "is incompatible with"):
          batch_broadcast.BatchBroadcast(
              normal.Normal(tf.range(3.0), 0.0), to_shape=[2, 1]
          )
  
      shp = tf.Variable([2, 1])
      self.evaluate(shp.initializer)
      with self.assertRaisesOpError("is incompatible with underlying"):
          self.evaluate(
              batch_broadcast.BatchBroadcast(
                  normal.Normal(tf.range(3.0), 0.0),
                  to_shape=shp,
                  validate_args=True,
              ).log_prob(0.0)
          )
  
imports: import hypothesis
  import hypothesis.strategies
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import batch_broadcast
  from tensorflow_probability.python.distributions import bernoulli
  from tensorflow_probability.python.distributions import beta
  from tensorflow_probability.python.distributions import categorical
  from tensorflow_probability.python.distributions import dirichlet
  from tensorflow_probability.python.distributions import hypothesis_testlib
  from tensorflow_probability.python.distributions import independent
  from tensorflow_probability.python.distributions import mixture_same_family
  from tensorflow_probability.python.distributions import mvn_diag
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.distributions import sample
  from tensorflow_probability.python.distributions import uniform
  from tensorflow_probability.python.distributions import von_mises_fisher
  from tensorflow_probability.python.distributions import wishart
  from tensorflow_probability.python.internal import hypothesis_testlib
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.random import random_ops
label_desc: Use image node_id 14 for calling the _BatchBroadcastTest obj's underlying member method code with example usage: obj.test_bcast_to_errors() without return types