code: def test_frn_basis(self, dtype):
      settlement_date = dates.convert_to_date_tensor([(2021, 1, 1)])
      maturity_date = dates.convert_to_date_tensor([(2022, 1, 1)])
      valuation_date = dates.convert_to_date_tensor([(2021, 1, 1)])
      period_3m = dates.periods.months(3)
      flt_spec = instruments.FloatCouponSpecs(
          coupon_frequency=period_3m,
          reference_rate_term=period_3m,
          reset_frequency=period_3m,
          currency="usd",
          notional=100.0,
          businessday_rule=dates.BusinessDayConvention.NONE,
          coupon_basis=0.01,
          coupon_multiplier=1.0,
          daycount_convention=instruments.DayCountConvention.ACTUAL_365,
      )
  
      frn = instruments.FloatingRateNote(
          settlement_date, maturity_date, [flt_spec], dtype=dtype
      )
  
      curve_dates = valuation_date + dates.periods.months(
          [0, 6, 12, 36]
      )
      reference_curve = instruments.RateCurve(
          curve_dates,
          np.array([0.001, 0.005, 0.007, 0.015], dtype=dtype),
          valuation_date=valuation_date,
          dtype=dtype,
      )
      market = instruments.InterestRateMarket(
          discount_curve=reference_curve,
          reference_curve=reference_curve,
      )
  
      price = self.evaluate(frn.price(valuation_date, market))
      np.testing.assert_allclose(price, 100.996314114175, atol=1e-7)
  
file_path: tf-quant-finance/tf_quant_finance/experimental/instruments/floating_rate_note_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 4 for calling the FloatingRateNoteTest obj's underlying member method code with example usage: obj.test_frn_basis(dtype) without return types