code: def test_pv_from_yields_no_group(self, dtype):
      yield_rate = 0.04
      coupon_rate = 0.04
      # Fifteen year bond with semi-annual coupons.
      cashflows = np.array(
          [coupon_rate * 500] * 29 + [1000 + coupon_rate * 500],
          dtype=dtype,
      )
      times = np.linspace(0.5, 15, num=30).astype(dtype)
      expected_pv = 995.50315587
      actual_pv = self.evaluate(
          tff.rates.analytics.cashflows.pv_from_yields(
              cashflows=cashflows,
              times=times,
              yields=yield_rate,
              dtype=dtype,
          )
      )
      np.testing.assert_allclose(expected_pv, actual_pv)
  
file_path: tf-quant-finance/tf_quant_finance/rates/analytics/cashflows_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 CashflowsTest obj's underlying member method code with example usage: obj.test_pv_from_yields_no_group(dtype) without return types