code: def test_rate_curve(self, dtype, ext_discount):
      curve = get_curve(dtype, ext_discount)
      values = self.evaluate(
          curve.get_rates([(2020, 6, 1), (2021, 6, 1), (2025, 1, 1)])
      )
      np.testing.assert_allclose(
          values,
          [0.0041530054644809, 0.0141369863013699, 0.02],
          atol=1e-6,
      )
  
file_path: tf-quant-finance/tf_quant_finance/experimental/instruments/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 1 for calling the RateCurveTest obj's underlying member method code with example usage: obj.test_rate_curve(dtype, ext_discount) without return types