code: def test_ir_swap_price(
      self,
      pay_leg_coupon_rates,
      receive_leg_coupon_rates,
      notional,
      pay_leg_daycount_fractions,
      receive_leg_daycount_fractions,
      discount_factors,
      expected_pv,
  ):
      dtype = tf.float64
      actual_pv = self.evaluate(
          tff.rates.analytics.swap.ir_swap_price(
              pay_leg_coupon_rates=pay_leg_coupon_rates,
              receive_leg_coupon_rates=receive_leg_coupon_rates,
              pay_leg_notional=notional,
              receive_leg_notional=notional,
              pay_leg_daycount_fractions=pay_leg_daycount_fractions,
              receive_leg_daycount_fractions=receive_leg_daycount_fractions,
              pay_leg_discount_factors=discount_factors,
              receive_leg_discount_factors=discount_factors,
              dtype=dtype,
          )
      )
      np.testing.assert_allclose(expected_pv, actual_pv)
  
file_path: tf-quant-finance/tf_quant_finance/rates/analytics/swap_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 SwapTest obj's underlying member method code with example usage: obj.test_ir_swap_price(pay_leg_coupon_rates, receive_leg_coupon_rates, notional, pay_leg_daycount_fractions, receive_leg_daycount_fractions, discount_factors, expected_pv) without return types