code: def testBrokenTypes(self):
      with self.assertRaisesWithPredicateMatch(
          TypeError, "Categorical"
      ):
          mixture.Mixture(None, [], validate_args=True)
      cat = categorical.Categorical([0.3, 0.2])
      # components must be a list of distributions
      with self.assertRaisesWithPredicateMatch(
          TypeError, "all .* must be Distribution instances"
      ):
          mixture.Mixture(cat, [None], validate_args=True)
      with self.assertRaisesWithPredicateMatch(TypeError, "same dtype"):
          mixture.Mixture(
              cat,
              [
                  normal.Normal(loc=[1.0], scale=[2.0]),
                  normal.Normal(
                      loc=[np.float16(1.0)], scale=[np.float16(2.0)]
                  ),
              ],
              validate_args=True,
          )
      with self.assertRaisesWithPredicateMatch(
          ValueError, "non-empty list"
      ):
          mixture.Mixture(
              categorical.Categorical([0.3, 0.2]),
              None,
              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 5 for calling the MixtureTest obj's underlying member method code with example usage: obj.testBrokenTypes() without return types