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