code: def packed_to_list(x: torch.Tensor, split_size: Union[list, int]):
      r"""
      Transforms a tensor of shape (sum(Mi), K, L, ...) to N set of tensors of
      shape (Mi, K, L, ...) where Mi's are defined in split_size
  
      Args:
        x: tensor
        split_size: list, tuple or int defining the number of items for each tensor
          in the output list.
  
      Returns:
        x_list: A list of Tensors
      """
      return x.split(split_size, dim=0)
  
imports: from typing import List, Sequence, Tuple, Union
  import torch
label_desc: Use image node_id 4 for calling a global function with example usage: packed_to_list(x, split_size) and returns: x