code: def test_tails(self, adapter, distribution):
      dist = adapter(distribution())
      lower_tail = dist._lower_tail(2**-8)
      try:
          left_mass = dist.cdf(lower_tail)
      except NotImplementedError:
          # We use base distribution as a proxy for the tail mass.
          left_mass = dist.base.cdf(lower_tail)
      self.assertLessEqual(left_mass, 2**-8)
  
      upper_tail = dist._upper_tail(2**-8)
      try:
          right_mass = dist.survival_function(upper_tail)
      except NotImplementedError:
          # We use base distribution as a proxy for the tail mass.
          right_mass = dist.base.survival_function(upper_tail)
      self.assertLessEqual(right_mass, 2**-8)
  
      self.assertGreater(upper_tail, lower_tail)
  
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 1 for calling the AdaptersTest obj's underlying member method code with example usage: obj.test_tails(adapter, distribution) without return types