code: def build_scaled_tensors(dim, scale=1):
      """Similar to build_tensors, but uses a different set of IVs and scale."""
      year = dim * [[2021, 2022]]
      month = dim * [[1, 1]]
      day = dim * [[1, 1]]
      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
      )
  
      # 10 points
      row = np.arange(0.9, 1.3, 0.04).tolist()
      row = [scale * r for r in row]
      strikes = dim * [[row, row]]
      strikes = tf.constant(strikes, dtype=tf.float64)
      # 10 points
      iv_row = (np.arange(0.21, 0.31, 0.01)).tolist()
      iv = dim * [[iv_row, iv_row]]
      spot = dim * [1.0 * scale]
      spot = tf.constant(spot, dtype=tf.float64)
      return valuation_date, expiries, expiry_times, strikes, iv, spot
  
imports: import functools
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tf_quant_finance.experimental.local_volatility import local_volatility_model
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 2 for calling a global function with example usage: build_scaled_tensors(dim, scale) and returns: valuation_date,  expiries,  expiry_times,  strikes,  iv,  spot