code: def test_equity_swap_price(
      self,
      rate_leg_coupon_rates,
      forward_prices,
      spots,
      notional,
      daycount_fractions,
      rate_leg_discount_factors,
      equity_leg_discount_factors,
      is_equity_receiver,
      expected_pv,
  ):
      dtype = tf.float64
      actual_pv = self.evaluate(
          tff.rates.analytics.swap.equity_swap_price(
              rate_leg_coupon_rates=rate_leg_coupon_rates,
              equity_leg_forward_prices=forward_prices,
              equity_leg_spots=spots,
              rate_leg_notional=notional,
              equity_leg_notional=notional,
              rate_leg_daycount_fractions=daycount_fractions,
              rate_leg_discount_factors=rate_leg_discount_factors,
              equity_leg_discount_factors=equity_leg_discount_factors,
              is_equity_receiver=is_equity_receiver,
              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 6 for calling the SwapTest obj's underlying member method code with example usage: obj.test_equity_swap_price(rate_leg_coupon_rates, forward_prices, spots, notional, daycount_fractions, rate_leg_discount_factors, equity_leg_discount_factors, is_equity_receiver, expected_pv) without return types