code: def testLogitsNearZeroNotNaN(self):
      dist = continuous_bernoulli.ContinuousBernoulli(
          logits=[-0.1, 0.0, 0.1]
      )
      self.assertAllNotNan(self.evaluate(dist.mean()))
      self.assertAllNotNan(self.evaluate(dist.variance()))
      samples = self.evaluate(
          dist.sample(int(1e3), seed=test_util.test_seed())
      )
      self.assertAllNotNan(samples)
      self.assertAllNotNan(dist.log_prob(samples))
      self.assertAllNotNan(dist.log_cdf(samples))
  
      # Check specific values.
      self.assertAllClose(0.5, dist.mean()[1])
      self.assertAllClose(1 / 12.0, dist.variance()[1])
  
imports: import numpy
  from scipy import special
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import continuous_bernoulli
  from tensorflow_probability.python.distributions import kullback_leibler
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
label_desc: Use image node_id 34 for calling the ContinuousBernoulliTest obj's underlying member method code with example usage: obj.testLogitsNearZeroNotNaN() without return types