code: def testDtype(self):
      dist = make_continuous_bernoulli([])
      self.assertEqual(dist.dtype, tf.float32)
      self.assertEqual(
          dist.dtype, dist.sample(5, seed=test_util.test_seed()).dtype
      )
      self.assertEqual(dist.dtype, dist.mode().dtype)
      self.assertEqual(dist.probs.dtype, dist.mean().dtype)
      self.assertEqual(dist.probs.dtype, dist.variance().dtype)
      self.assertEqual(dist.probs.dtype, dist.stddev().dtype)
      self.assertEqual(dist.probs.dtype, dist.entropy().dtype)
      self.assertEqual(dist.probs.dtype, dist.prob(0.1).dtype)
      self.assertEqual(dist.probs.dtype, dist.prob(0.9).dtype)
      self.assertEqual(dist.probs.dtype, dist.log_prob(0.1).dtype)
      self.assertEqual(dist.probs.dtype, dist.log_prob(0.9).dtype)
      self.assertEqual(dist.probs.dtype, dist.cdf(0.1).dtype)
      self.assertEqual(dist.probs.dtype, dist.cdf(0.9).dtype)
      self.assertEqual(dist.probs.dtype, dist.log_cdf(0.1).dtype)
      self.assertEqual(dist.probs.dtype, dist.log_cdf(0.9).dtype)
      self.assertEqual(
          dist.probs.dtype, dist.survival_function(0.1).dtype
      )
      self.assertEqual(
          dist.probs.dtype, dist.survival_function(0.9).dtype
      )
      self.assertEqual(
          dist.probs.dtype, dist.log_survival_function(0.1).dtype
      )
      self.assertEqual(
          dist.probs.dtype, dist.log_survival_function(0.9).dtype
      )
      self.assertEqual(dist.probs.dtype, dist.quantile(0.1).dtype)
      self.assertEqual(dist.probs.dtype, dist.quantile(0.9).dtype)
  
      dist64 = make_continuous_bernoulli([], tf.float64)
      self.assertEqual(dist64.dtype, tf.float64)
      self.assertEqual(
          dist64.dtype,
          dist64.sample(5, seed=test_util.test_seed()).dtype,
      )
      self.assertEqual(dist64.dtype, dist64.mode().dtype)
  
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 5 for calling the ContinuousBernoulliTest obj's underlying member method code with example usage: obj.testDtype() without return types