code: def test_swaption_correctness_pb(self, dtype):
      swaption = rates_instruments.swaption.Swaption.from_protos(
          [self._swaption_proto], config=self._swaption_config
      )
      price = self.evaluate(swaption[0].price(self._market))
      np.testing.assert_allclose(price, 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 4 for calling the SwaptionTest obj's underlying member method code with example usage: obj.test_swaption_correctness_pb(dtype) without return types