code: def _convert_to_tensors(dtype, input_array, name):
      """Converts the supplied list to a tensor."""
  
      output_tensor = [
          tf.convert_to_tensor(
              x, dtype=dtype, name=name + "_{}".format(i)
          )
          for i, x in enumerate(input_array)
      ]
  
      return output_tensor
  
file_path: tf-quant-finance/tf_quant_finance/rates/swap_curve_bootstrap.py
imports: from typing import List, Callable
  import tensorflow.compat.v2
  from tf_quant_finance import types
  from tf_quant_finance import utils
  from tf_quant_finance.math.interpolation import linear
  from tf_quant_finance.rates import swap_curve_common
label_desc: Use image node_id 3 for calling a global function with example usage: _convert_to_tensors(dtype, input_array, name) and returns: output_tensor