code: def testParamTensorFromProbs(self):
      x = tf.constant([0.1, 0.5, 0.4])
      d = bernoulli.Bernoulli(probs=x, validate_args=True)
      logit = lambda x: tf.math.log(x) - tf.math.log1p(-x)
      self.assertAllClose(
          *self.evaluate([logit(d.prob(1.0)), d.logits_parameter()]),
          atol=0,
          rtol=1e-4,
      )
      self.assertAllClose(
          *self.evaluate([d.prob(1.0), d.probs_parameter()]),
          atol=0,
          rtol=1e-4,
      )
  
imports: import numpy
  from scipy import special
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import bernoulli
  from tensorflow_probability.python.distributions import kullback_leibler
  from tensorflow_probability.python.internal import samplers
  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 26 for calling the BernoulliTest obj's underlying member method code with example usage: obj.testParamTensorFromProbs() without return types