code: def pad_tensor_n(xs, max_len):
      """Pad array of tensors.
  
      Args:
          xs (numpy.ndarray): Tensors to be padded.
          max_len (int): Maximum length.
  
      Returns:
          numpy.ndarray: Padded tensor.
  
      """
      ret = np.zeros(
          (len(xs), max_len) + xs[0].shape[1:], dtype=xs[0].dtype
      )
      for idx, x in enumerate(xs):
          ret[idx][: len(x)] = x
  
      return ret
  
file_path: garage/src/garage/np/_functions.py
imports: import warnings
  import numpy
  import scipy.signal
label_desc: Use image node_id 8 for calling a global function with example usage: pad_tensor_n(xs, max_len) and returns: ret