code: def testWithInvalidValueTolerance(self):
      f = lambda x: x**3
  
      # Should fail: Value tolerance is negative.
      with self.assertRaises(tf.errors.InvalidArgumentError):
          self.evaluate(
              brentq(
                  f,
                  tf.constant(-1, dtype=tf.float64),
                  tf.constant(1, dtype=tf.float64),
                  function_tolerance=-2e-7,
                  validate_args=True,
              )
          )
  
imports: import math
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
  from tf_quant_finance.math.root_search import utils
label_desc: Use image node_id 12 for calling the BrentqTest obj's underlying member method code with example usage: obj.testWithInvalidValueTolerance() without return types