code: def testSampleMultipleTimes(self):
      # 5 component mixture.
      logits = [-10.0, -5.0, 0.0, 5.0, 10.0]
      mus = [-5.0, 0.0, 5.0, 4.0, 20.0]
      sigmas = [0.1, 5.0, 3.0, 0.2, 4.0]
  
      n = 100
      seed = test_util.test_seed()
      components = [
          normal.Normal(loc=mu, scale=sigma)
          for mu, sigma in zip(mus, sigmas)
      ]
      cat = categorical.Categorical(logits, dtype=tf.int32, name="cat1")
      dist1 = mixture.Mixture(
          cat, components, name="mixture1", validate_args=True
      )
      tf.random.set_seed(seed)
      samples1 = self.evaluate(dist1.sample(n, seed=seed))
  
      components2 = [
          normal.Normal(loc=mu, scale=sigma)
          for mu, sigma in zip(mus, sigmas)
      ]
      cat2 = categorical.Categorical(
          logits, dtype=tf.int32, name="cat2"
      )
      dist2 = mixture.Mixture(
          cat2, components2, name="mixture2", validate_args=True
      )
      tf.random.set_seed(seed)
      samples2 = self.evaluate(dist2.sample(n, seed=seed))
  
      self.assertAllClose(samples1, samples2)
  
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 16 for calling the MixtureTest obj's underlying member method code with example usage: obj.testSampleMultipleTimes() without return types