code: def test_rate_leg_cashflows(
      self, notional, coupon_rates, daycount_fractions, expected_pv
  ):
      dtype = tf.float64
      actual_pv = self.evaluate(
          tff.rates.analytics.swap.rate_leg_cashflows(
              coupon_rates=coupon_rates,
              daycount_fractions=daycount_fractions,
              notional=notional,
              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 2 for calling the SwapTest obj's underlying member method code with example usage: obj.test_rate_leg_cashflows(notional, coupon_rates, daycount_fractions, expected_pv) without return types