code: def testInvalidProb(self):
      invalid_probs = [1.01, 2.0]
      for prob in invalid_probs:
          with self.assertRaisesOpError(
              "probs has components greater than 1"
          ):
              dist = continuous_bernoulli.ContinuousBernoulli(
                  probs=prob, validate_args=True
              )
              self.evaluate(dist.probs_parameter())
  
      invalid_probs = [-0.01, -3.0]
      for prob in invalid_probs:
          with self.assertRaisesOpError(
              "probs has components less than 0"
          ):
              dist = continuous_bernoulli.ContinuousBernoulli(
                  probs=prob, validate_args=True
              )
              self.evaluate(dist.probs_parameter())
  
      valid_probs = [0.1, 0.5, 0.9]
      for prob in valid_probs:
          dist = continuous_bernoulli.ContinuousBernoulli(
              probs=prob, validate_args=True
          )
          self.assertEqual(np.float32(prob), self.evaluate(dist.probs))
  
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 3 for calling the ContinuousBernoulliTest obj's underlying member method code with example usage: obj.testInvalidProb() without return types