class_docstr: Tests for the variance_swaps module.
code: def test_replicating_weights_raises_validation_error(self):
      strikes = np.array([1, 2, 3, 2, 1])
      reference_strike = 3
      expiry = 1
      with self.assertRaises(tf.errors.InvalidArgumentError):
          _ = self.evaluate(
              variance_swaps.replicating_weights(
                  strikes,
                  reference_strike,
                  expiry,
                  validate_args=True,
                  dtype=tf.float64,
              )
          )
  
file_path: tf-quant-finance/tf_quant_finance/black_scholes/variance_swaps_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tf_quant_finance.black_scholes import variance_swaps
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 3 for calling the VarianceSwapsTest obj's underlying member method code with example usage: obj.test_replicating_weights_raises_validation_error() without return types