docstr: Test that the SABR model raises errors appropriately.
docstr_tok: ["Test","that","the","SABR","model","raises","errors","appropriately","."]
code: def test_sabr_model_validate_raises_error(
      self, beta, volvol, rho, times
  ):
      """Test that the SABR model raises errors appropriately."""
      dtype = np.float64
      time_step = 0.1
      num_samples = 10
      initial_forward, initial_volatility = 1.0, 1.0
      test_seed = 123
      with self.assertRaises(tf.errors.InvalidArgumentError):
          process = SabrModel(
              beta=beta,
              volvol=volvol,
              rho=rho,
              dtype=dtype,
              enable_unbiased_sampling=True,
          )
          paths = process.sample_paths(
              initial_forward=initial_forward,
              initial_volatility=initial_volatility,
              times=times,
              time_step=time_step,
              num_samples=num_samples,
              seed=test_seed,
              validate_args=True,
          )
          paths = self.evaluate(paths)
  
file_path: tf-quant-finance/tf_quant_finance/models/sabr/sabr_model_test.py
imports: import math
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
  from tf_quant_finance.models import euler_sampling
label_desc: Use image node_id 3 for calling the SabrModelTest obj's underlying member method code with example usage: obj.test_sabr_model_validate_raises_error(beta, volvol, rho, times) without return types