code: def testVariableAssertions(self):
      atol = tf.Variable(0.1)
      rtol = tf.Variable(0.1)
      dist = det.VectorDeterministic(
          loc=[0.1], atol=atol, rtol=rtol, validate_args=True
      )
  
      self.evaluate([v.initializer for v in dist.variables])
      self.evaluate(dist.log_prob([1.0]))
  
      self.evaluate(atol.assign(-1.0))
      with self.assertRaisesRegexp(
          (ValueError, tf.errors.InvalidArgumentError),
          "Condition x >= 0",
      ):
          self.evaluate(dist.log_prob([1.0]))
  
      self.evaluate(atol.assign(0.1))
      self.evaluate(rtol.assign(-1.0))
      with self.assertRaisesRegexp(
          (ValueError, tf.errors.InvalidArgumentError),
          "Condition x >= 0",
      ):
          self.evaluate(dist.log_prob([1.0]))
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import deterministic
  from tensorflow_probability.python.distributions import gamma
  from tensorflow_probability.python.distributions import kullback_leibler
  from tensorflow_probability.python.distributions import mvn_diag
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 20 for calling the VectorDeterministicTest obj's underlying member method code with example usage: obj.testVariableAssertions() without return types