code: def testPmfInvalid(self):
      p = [0.1, 0.2, 0.7]
      dist = bernoulli.Bernoulli(probs=p, validate_args=True)
      with self.assertRaisesOpError("must be non-negative."):
          self.evaluate(dist.prob([1, 1, -1]))
      with self.assertRaisesOpError("Elements cannot exceed 1."):
          self.evaluate(dist.prob([2, 0, 1]))
  
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 8 for calling the BernoulliTest obj's underlying member method code with example usage: obj.testPmfInvalid() without return types