code: def testAssertionsProbs(self):
      x = tf.Variable([0.1, 0.7, 0.0])
      d = relaxed_bernoulli.RelaxedBernoulli(
          0.5, probs=x, validate_args=True
      )
      self.evaluate(x.initializer)
      self.evaluate(d.sample(seed=test_util.test_seed()))
      with tf.control_dependencies([x.assign([0.1, -0.7, 0.0])]):
          with self.assertRaisesOpError(
              "Argument `probs` has components less than 0."
          ):
              self.evaluate(d.sample(seed=test_util.test_seed()))
  
      with tf.control_dependencies([x.assign([0.1, 1.7, 0.0])]):
          with self.assertRaisesOpError(
              "Argument `probs` has components greater than 1."
          ):
              self.evaluate(d.sample(seed=test_util.test_seed()))
  
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 4 for calling the RelaxedBernoulliFromVariableTest obj's underlying member method code with example usage: obj.testAssertionsProbs() without return types