code: def test_raises_when_bad_combination_of_inputs(self):
      with self.assertRaisesRegex(
          ValueError,
          "Either both `forwards` and `strikes` must be supplied, or neither.",
      ):
          self.evaluate(
              tff.experimental.svi.total_variance_from_raw_svi_parameters(
                  svi_parameters=None, forwards=np.array([5.0])
              )
          )
  
      with self.assertRaisesRegex(
          ValueError,
          "Exactly one of `log_moneyness` or `forwards` must be provided.",
      ):
          self.evaluate(
              tff.experimental.svi.total_variance_from_raw_svi_parameters(
                  svi_parameters=None,
                  log_moneyness=np.array([0.0]),
                  forwards=np.array([5.0]),
                  strikes=np.array([6.0]),
              )
          )
  
file_path: tf-quant-finance/tf_quant_finance/experimental/svi/parameterizations_test.py
imports: import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 3 for calling the SviParameterizationsTest obj's underlying member method code with example usage: obj.test_raises_when_bad_combination_of_inputs() without return types