code: def testInvalidP(self):
      invalid_ps = [1.01, 2.0]
      for p in invalid_ps:
          with self.assertRaisesOpError(
              "probs has components greater than 1"
          ):
              dist = probit_bernoulli.ProbitBernoulli(
                  probs=p, validate_args=True
              )
              self.evaluate(dist.probs_parameter())
  
      invalid_ps = [-0.01, -3.0]
      for p in invalid_ps:
          with self.assertRaisesOpError("x >= 0 did not hold"):
              dist = probit_bernoulli.ProbitBernoulli(
                  probs=p, validate_args=True
              )
              self.evaluate(dist.probs_parameter())
  
      valid_ps = [0.0, 0.5, 1.0]
      for p in valid_ps:
          dist = probit_bernoulli.ProbitBernoulli(
              probs=p, validate_args=True
          )
          self.assertEqual(p, 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 kullback_leibler
  from tensorflow_probability.python.distributions import probit_bernoulli
  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 ProbitBernoulliTest obj's underlying member method code with example usage: obj.testInvalidP() without return types