code: def testBrokenShapesStatic(self):
      with self.assertRaisesWithPredicateMatch(
          ValueError, r"cat.num_classes != len"
      ):
          mixture.Mixture(
              categorical.Categorical([0.1, 0.5]),  # 2 classes
              [normal.Normal(loc=1.0, scale=2.0)],
              validate_args=True,
          )
      with self.assertRaisesWithPredicateMatch(
          ValueError, r"components\[1\] batch shape must be compatible"
      ):
          # The value error is raised because the batch shapes of the
          # Normals are not equal.  One is a scalar, the other is a
          # vector of size (2,).
          mixture.Mixture(
              categorical.Categorical([-0.5, 0.5]),  # scalar batch
              [
                  normal.Normal(loc=1.0, scale=2.0),  # scalar dist
                  normal.Normal(loc=[1.0, 1.0], scale=[2.0, 2.0]),
              ],
              validate_args=True,
          )
  
imports: import contextlib
  import warnings
  import numpy
  from scipy import stats
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import categorical
  from tensorflow_probability.python.distributions import dirichlet
  from tensorflow_probability.python.distributions import distribution
  from tensorflow_probability.python.distributions import gamma
  from tensorflow_probability.python.distributions import half_normal
  from tensorflow_probability.python.distributions import independent
  from tensorflow_probability.python.distributions import mixture
  from tensorflow_probability.python.distributions import mvn_diag
  from tensorflow_probability.python.distributions import mvn_tril
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.internal import hypothesis_testlib
  from tensorflow_probability.python.internal import reparameterization
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 2 for calling the MixtureTest obj's underlying member method code with example usage: obj.testBrokenShapesStatic() without return types