code: def test_quantizes_to_integers(self):
      em = PowerLawEntropyModel(coding_rank=1)
      x = tf.range(-20.0, 20.0)
      x_perturbed = x + tf.random.uniform(x.shape, -0.49, 0.49)
      x_quantized = em.quantize(x_perturbed)
      self.assertAllEqual(x, x_quantized)
  
file_path: compression/tensorflow_compression/python/entropy_models/power_law_test.py
imports: import numpy
  import tensorflow
  from tensorflow_compression.python.entropy_models.power_law import PowerLawEntropyModel
label_desc: Use image node_id 3 for calling the PowerLawEntropyModelTest obj's underlying member method code with example usage: obj.test_quantizes_to_integers() without return types