code: def testDtype(self):
      dist = make_bernoulli([])
      self.assertEqual(dist.dtype, dtypes.int32)
      self.assertEqual(dist.dtype, dist.sample(5).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).dtype)
      self.assertEqual(dist.probs.dtype, dist.prob(0.5).dtype)
      self.assertEqual(dist.probs.dtype, dist.log_prob(0).dtype)
      self.assertEqual(dist.probs.dtype, dist.log_prob(0.5).dtype)
  
      dist64 = make_bernoulli([], dtypes.int64)
      self.assertEqual(dist64.dtype, dtypes.int64)
      self.assertEqual(dist64.dtype, dist64.sample(5).dtype)
      self.assertEqual(dist64.dtype, dist64.mode().dtype)
  
imports: import importlib
  import numpy
  from tensorflow.python.eager import backprop
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops.distributions import bernoulli
  from tensorflow.python.ops.distributions import kullback_leibler
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 5 for calling the BernoulliTest obj's underlying member method code with example usage: obj.testDtype() without return types