code: def build_tensors(dim, spot, risk_free_rate):
      year = [[2021, 2022]] * dim
      month = [[1, 1]] * dim
      day = [[1, 1]] * dim
      expiries = tff.datetime.dates_from_year_month_day(
          year, month, day
      )
      valuation_date = [(2020, 1, 1)]
      expiry_times = tff.datetime.daycount_actual_365_fixed(
          start_date=valuation_date, end_date=expiries, dtype=tf.float64
      )
      moneyness = [
          [[0.1, 0.9, 1.0, 1.1, 3], [0.1, 0.9, 1.0, 1.1, 3]]
      ] * dim
      strikes = (
          spot
          * np.array(moneyness)
          * np.exp(risk_free_rate * np.array([[1.0], [2.0]]))
      )
      iv = [
          [
              [0.135, 0.12, 0.1, 0.11, 0.13],
              [0.135, 0.12, 0.1, 0.11, 0.13],
          ]
      ] * dim
      return valuation_date, expiries, expiry_times, strikes, iv
  
file_path: tf-quant-finance/tf_quant_finance/experimental/local_stochastic_volatility/local_stochastic_volatility_model_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 a global function with example usage: build_tensors(dim, spot, risk_free_rate) and returns: valuation_date,  expiries,  expiry_times,  strikes,  iv