code: def test_discount_curve(self):
      market = market_data.MarketDataDict(self._market_data_dict)
      # Get the risk free discount curve
      risk_free_curve_type = core.curve_types.RiskFreeCurve(
          currency="USD"
      )
      risk_free_curve = market.yield_curve(risk_free_curve_type)
      # Get LIBOR 3M discount
      libor_3m = core.rate_indices.RateIndex(type="LIBOR_3M")
      rate_index_curve_type = core.curve_types.RateIndexCurve(
          currency="USD", index=libor_3m
      )
      libor_3m_curve = market.yield_curve(rate_index_curve_type)
      with self.subTest("RiskFree"):
          discount_factor_nodes = risk_free_curve.discount_factor_nodes
          self.assertAllClose(
              discount_factor_nodes, self._risk_free_discounts
          )
      with self.subTest("LIBOR_3M"):
          discount_factor_nodes = libor_3m_curve.discount_factor_nodes
          self.assertAllClose(
              discount_factor_nodes, self._libor_discounts
          )
  
file_path: tf-quant-finance/tf_quant_finance/experimental/pricing_platform/framework/market_data/market_data_test.py
imports: import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 2 for calling the MarketDataTest obj's underlying member method code with example usage: obj.test_discount_curve() without return types