code: def testAssertValidSample(self):
      temperature = 1e-2
      p = [0.2, 0.6, 0.5]
      dist = relaxed_bernoulli.RelaxedBernoulli(
          temperature, probs=p, validate_args=True
      )
      with self.assertRaisesOpError("Sample must be non-negative."):
          self.evaluate(dist.log_cdf([0.3, -0.2, 0.5]))
      with self.assertRaisesOpError(
          "Sample must be less than or equal to `1`."
      ):
          self.evaluate(dist.prob([0.3, 0.1, 1.2]))
  
imports: import numpy
  import scipy.special
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import relaxed_bernoulli
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 11 for calling the RelaxedBernoulliTest obj's underlying member method code with example usage: obj.testAssertValidSample() without return types