class_docstr: Common tests for noisy location-scale family of distributions.
code: def test_uniform_is_special_case(self):
      # With the scale parameter going to zero, the adapted distribution should
      # approach a unit-width uniform distribution. As a side effect, this tests
      # that `mean()` is defined (because not for all distributions the mean
      # coincides with the location parameter).
      dist = self.dist_cls(loc=10, scale=1e-7)
      mean = dist.mean()
      x = tf.linspace(mean - 1, mean + 1, 10)
      self.assertAllClose(dist.prob(x), [0, 0, 0, 1, 1, 1, 1, 0, 0, 0])
  
imports: import tensorflow
  from tensorflow_compression.python.distributions import helpers
  from tensorflow_compression.python.distributions import uniform_noise
label_desc: Use image node_id 4 for calling the LocationScaleTest obj's underlying member method code with example usage: obj.test_uniform_is_special_case() without return types