code: def unflatten_tensors(flattened, tensor_shapes):
      """Unflatten a flattened tensors into a list of tensors.
  
      Args:
          flattened (numpy.ndarray): Flattened tensors.
          tensor_shapes (tuple): Tensor shapes.
  
      Returns:
          list[numpy.ndarray]: Unflattened list of tensors.
  
      """
      tensor_sizes = list(map(np.prod, tensor_shapes))
      indices = np.cumsum(tensor_sizes)[:-1]
      return [
          np.reshape(pair[0], pair[1])
          for pair in zip(np.split(flattened, indices), tensor_shapes)
      ]
  
file_path: garage/src/garage/np/_functions.py
imports: import warnings
  import numpy
  import scipy.signal
label_desc: Use image node_id 6 for calling a global function with example usage: unflatten_tensors(flattened, tensor_shapes) and returns: unknown