code: def _args_to_matching_arrays(args_list, dtype_hint=None):
      """Converts a list to array using the first element for dtype.
  
      This method is used to match the behavior of `tf.concat`.
  
      Args:
        args_list: A list or tuple of arguments.
        dtype_hint: An optional hint used when converting the args to tensors.
      Returns:
        A list of tensors.
      """
      dtype = None
      for arg in args_list:
          if ops.is_tensor(arg):
              dtype = arg.dtype
              break
      if dtype is None:
          ret = []
          for arg in args_list:
              ret.append(
                  ops.convert_to_tensor(
                      arg, dtype, dtype_hint=dtype_hint
                  )
              )
              if dtype is None:
                  dtype = ret[-1].dtype
      else:
          ret = [ops.convert_to_tensor(arg, dtype) for arg in args_list]
      return ret
  
imports: import functools
  import numpy
  import numpy
  from tensorflow_probability.python.internal.backend.numpy import _utils
  from tensorflow_probability.python.internal.backend.numpy import ops
  from tensorflow_probability.python.internal.backend.numpy.linalg_impl import einsum
  from tensorflow_probability.python.internal.backend.numpy.linalg_impl import norm
  from tensorflow_probability.python.internal.backend.numpy.linalg_impl import tensordot
label_desc: Use image node_id 3 for calling a global function with example usage: _args_to_matching_arrays(args_list, dtype_hint) and returns: ret