code: def _get_parameters(times, *params):
      """Gets parameter values at at specified `times`."""
      res = []
      for param in params:
          if callable(param):
              # Used only in drift and volatility computation.
              # Here `times` is of shape [1]
              t = tf.squeeze(times)
              # The result has to have shape [1] + param.shape
              param_value = tf.convert_to_tensor(
                  param(t), dtype=times.dtype, name="param_value"
              )
              res.append(tf.expand_dims(param_value, 0))
          else:
              res.append(
                  param
                  + tf.zeros(
                      times.shape + param.shape, dtype=times.dtype
                  )
              )
      return res
  
file_path: tf-quant-finance/tf_quant_finance/models/joined_ito_process.py
imports: import tensorflow.compat.v2
  from tf_quant_finance.models import euler_sampling
  from tf_quant_finance.models import generic_ito_process
  from tf_quant_finance.models import ito_process
  from tf_quant_finance.models import utils
label_desc: Use image node_id 1 for calling a global function with example usage: _get_parameters(times) and returns: res