code: def test_logistic_is_special_case(self):
      # With no hidden units, the density should collapse to a logistic
      # distribution convolved with a standard uniform distribution.
      df = deep_factorized.NoisyDeepFactorized(
          num_filters=(), init_scale=1
      )
      logistic = tfp.distributions.Logistic(
          loc=-df.base._biases[0][0, 0], scale=1.0
      )
      x = tf.linspace(-5.0, 5.0, 20)
      prob_df = df.prob(x)
      prob_log = logistic.cdf(x + 0.5) - logistic.cdf(x - 0.5)
      self.assertAllClose(prob_df, prob_log)
  
imports: from absl.testing import parameterized
  import tensorflow
  import tensorflow_probability
  from tensorflow_compression.python.distributions import deep_factorized
  from tensorflow_compression.python.distributions import helpers
label_desc: Use image node_id 5 for calling the NoisyDeepFactorizedTest obj's underlying member method code with example usage: obj.test_logistic_is_special_case() without return types