class_docstr: Common tests for noisy location-scale family of distributions.
class_docstr_tok: ["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.
      dist = self.dist_cls(loc=5.0, scale=1e-7)
      x = tf.linspace(5.0 - 1, 5.0 + 1, 10)
      self.assertAllClose(dist.prob(x), [0, 0, 0, 1, 1, 1, 1, 0, 0, 0])
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow
  import tensorflow_probability
  from tensorflow_compression.python.distributions import deep_factorized
  from tensorflow_compression.python.distributions import round_adapters
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