code: def test_fwd_rates(self):
      curve = build_cuve()
      start_dates = [(2020, 6, 16), (2021, 6, 1), (2025, 1, 1)]
      maturity_dates = [(2020, 7, 1), (2021, 8, 1), (2025, 3, 1)]
      day_count_fraction = dateslib.daycount_actual_actual_isda(
          start_date=start_dates,
          end_date=maturity_dates,
          dtype=tf.float64,
      )
      values = self.evaluate(
          curve.forward_rate(
              start_date=start_dates,
              maturity_date=maturity_dates,
              day_count_fraction=day_count_fraction,
          )
      )
      np.testing.assert_allclose(
          values, [0.0029773, 0.07680459, 0.05290519], atol=1e-6
      )
  
file_path: tf-quant-finance/tf_quant_finance/experimental/pricing_platform/framework/market_data/rate_curve_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 5 for calling the RateCurveTest obj's underlying member method code with example usage: obj.test_fwd_rates() without return types