code: def test_inflated_factory(self):
      spike_and_slab_class = inflated.inflated_factory(
          "SpikeAndSlab", normal.Normal, 0.0
      )
      spike_and_slab = spike_and_slab_class(
          inflated_loc_probs=0.3, loc=5.0, scale=2.0
      )
      spike_and_slab2 = inflated.Inflated(
          normal.Normal(loc=5.0, scale=2.0), inflated_loc_probs=0.3
      )
      self.assertEqual(
          self.evaluate(spike_and_slab.log_prob(7.0)),
          self.evaluate(spike_and_slab2.log_prob(7.0)),
      )
  
file_path: probability/tensorflow_probability/python/distributions/inflated_test.py
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import gamma
  from tensorflow_probability.python.distributions import inflated
  from tensorflow_probability.python.distributions import lognormal
  from tensorflow_probability.python.distributions import negative_binomial
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.experimental.util import trainable
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
label_desc: Use image node_id 4 for calling the DistributionsTest obj's underlying member method code with example usage: obj.test_inflated_factory() without return types