code: def test_yields_from_pvs_no_group(self, dtype):
      coupon_rate = 0.04
      # Fifteen year bond with semi-annual coupons.
      cashflows = np.array(
          [coupon_rate * 500] * 29 + [1000 + coupon_rate * 500],
          dtype=dtype,
      )
      pv = 995.50315587
      times = np.linspace(0.5, 15, num=30).astype(dtype)
      expected_yield_rate = 0.04
      actual_yield_rate = self.evaluate(
          tff.rates.analytics.cashflows.yields_from_pv(
              cashflows, times, [pv], dtype=dtype
          )
      )
      np.testing.assert_allclose(expected_yield_rate, actual_yield_rate)
  
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 5 for calling the CashflowsTest obj's underlying member method code with example usage: obj.test_yields_from_pvs_no_group(dtype) without return types