code: def test_compression_works_after_serialization_no_offset(self):
      noisy = uniform_noise.NoisyNormal(loc=0, scale=5.0)
      em = ContinuousBatchedEntropyModel(noisy, 1, compression=True)
      self.assertIs(em._quantization_offset, None)
      json = tf.keras.utils.legacy.serialize_keras_object(em)
      weights = em.get_weights()
      x = noisy.base.sample([100])
      x_quantized = em.quantize(x)
      x_compressed = em.compress(x)
      em = tf.keras.utils.legacy.deserialize_keras_object(json)
      em.set_weights(weights)
      self.assertAllEqual(em.compress(x), x_compressed)
      self.assertAllEqual(
          em.decompress(x_compressed, [100]), x_quantized
      )
  
imports: from absl.testing import parameterized
  import tensorflow
  import tensorflow_probability
  from tensorflow_compression.python.distributions import uniform_noise
  from tensorflow_compression.python.entropy_models.continuous_batched import ContinuousBatchedEntropyModel
label_desc: Use image node_id 11 for calling the ContinuousBatchedEntropyModelTest obj's underlying member method code with example usage: obj.test_compression_works_after_serialization_no_offset() without return types