docstr: Tests a bug in the underlying tfd.Gamma op.
  
  Mixture's use of dynamic partition requires `random_gamma` correctly returns
  an empty `Tensor`.
docstr_tok: ["Tests","a","bug","in","the","underlying","tfd.Gamma","op",".","Mixture","'s","use","of","dynamic","partition","requires","`","random_gamma","`","correctly","returns","an","empty","`","Tensor","`","."]
code: def testSampleBimixGamma(self):
      """Tests a bug in the underlying tfd.Gamma op.
  
      Mixture's use of dynamic partition requires `random_gamma` correctly returns
      an empty `Tensor`.
      """
      gm = mixture.Mixture(
          cat=categorical.Categorical(probs=[0.3, 0.7]),
          components=[gamma.Gamma(1.0, 2.0), gamma.Gamma(2.0, 1.0)],
          validate_args=True,
      )
      x_ = self.evaluate(gm.sample(seed=test_util.test_seed()))
      self.assertAllEqual([], x_.shape)
  
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 25 for calling the MixtureTest obj's underlying member method code with example usage: obj.testSampleBimixGamma() without return types