code: def testLogits(self):
      logits = [-42.0, 42.0]
      dist = bernoulli.Bernoulli(logits=logits)
      self.assertAllClose(logits, self.evaluate(dist.logits))
  
      if not special:
          return
  
      self.assertAllClose(
          special.expit(logits), self.evaluate(dist.probs)
      )
  
      p = [0.01, 0.99, 0.42]
      dist = bernoulli.Bernoulli(probs=p)
      self.assertAllClose(special.logit(p), self.evaluate(dist.logits))
  
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 2 for calling the BernoulliTest obj's underlying member method code with example usage: obj.testLogits() without return types