code: def test_swaption_correctness_batch(self, dtype):
      swap = rates_instruments.interest_rate_swap.InterestRateSwap(
          start_date=self._start_date_batch,
          maturity_date=self._maturity_date_batch,
          pay_leg=self._fix_spec,
          receive_leg=self._flt_spec,
          dtype=dtype,
      )
      swaption = rates_instruments.swaption.Swaption(
          swap,
          self._expiry_date_batch,
          config=self._swaption_config,
          dtype=dtype,
      )
      price = self.evaluate(swaption.price(self._market))
      np.testing.assert_allclose(
          price, [1.38594754, 1.38594754], atol=1e-6
      )
  
file_path: tf-quant-finance/tf_quant_finance/experimental/pricing_platform/framework/rate_instruments/swaption/swaption_test.py
imports: from absl.testing import parameterized
  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 SwaptionTest obj's underlying member method code with example usage: obj.test_swaption_correctness_batch(dtype) without return types