code: def test_volatility(self):
      market = market_data.MarketDataDict(self._market_data_dict)
      # Get volatility surface
      vol_surface = market.volatility_surface(
          currency=["USD", "USD"], asset=["GOOG", "GOOG"]
      )
      expiry = tff.datetime.dates_from_year_month_day(
          year=[[2023], [2030]], month=[[5], [10]], day=[[10], [15]]
      )
      vols = vol_surface.volatility(
          expiry_dates=expiry, strike=[[1510], [1520]]
      )
      self.assertAllClose(
          self.evaluate(vols), [[0.108], [0.31]], atol=1e-6
      )
  
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 3 for calling the MarketDataTest obj's underlying member method code with example usage: obj.test_volatility() without return types