code: def test_yields_from_forward_rates_no_batches(self, dtype):
      times = np.array(
          [0.25, 0.5, 1.0, 1.25, 1.5, 2.0, 2.5], dtype=dtype
      )
      forward_rates = np.array(
          [0.04, 0.042, 0.047, 0.054, 0.046, 0.05, 0.062], dtype=dtype
      )
      expected_rates = np.array(
          [0.04, 0.041, 0.044, 0.046, 0.046, 0.047, 0.050], dtype=dtype
      )
      actual_rates = self.evaluate(
          tff.rates.analytics.forwards.yields_from_forward_rates(
              forward_rates, times, dtype=dtype
          )
      )
      np.testing.assert_allclose(
          actual_rates, expected_rates, atol=1e-6
      )
  
file_path: tf-quant-finance/tf_quant_finance/rates/analytics/forwards_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 ForwardRatesTest obj's underlying member method code with example usage: obj.test_yields_from_forward_rates_no_batches(dtype) without return types