code: def test_can_instantiate_statelessly(self):
      noisy = uniform_noise.NoisyNormal(loc=0.25, scale=1.0)
      em = ContinuousBatchedEntropyModel(
          noisy, coding_rank=1, compression=True
      )
      self.assertEqual(em.compression, True)
      self.assertEqual(em.stateless, False)
      self.assertAllEqual(0.25, em.quantization_offset)
      em = ContinuousBatchedEntropyModel(
          compression=True,
          stateless=True,
          coding_rank=1,
          prior_shape=noisy.batch_shape,
          cdf=em.cdf,
          cdf_offset=em.cdf_offset,
          quantization_offset=em.quantization_offset,
      )
      self.assertEqual(em.compression, True)
      self.assertEqual(em.stateless, True)
      self.assertAllEqual(0.25, em.quantization_offset)
      with self.assertRaises(RuntimeError):
          em.prior  # pylint:disable=pointless-statement
      self.assertEqual(em.coding_rank, 1)
      self.assertEqual(em.tail_mass, 2**-8)
      self.assertEqual(em.range_coder_precision, 12)
      self.assertEqual(em.bottleneck_dtype, tf.float32)
  
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 2 for calling the ContinuousBatchedEntropyModelTest obj's underlying member method code with example usage: obj.test_can_instantiate_statelessly() without return types