code: def partial_vec_to_tensor(matrix, shape, skip_begin=1, skip_end=0):
      """Refolds a partially vectorised tensor into a full one
  
      Parameters
      ----------
      matrix : ndarray
          a partially vectorised tensor
      shape : tuple
          the shape of the original full tensor (including skipped dimensions)
      skip_begin : int, optional, default is 1
          number of dimensions to leave untouched at the beginning
      skip_end : int, optional
          number of dimensions to leave untouched at the end
  
      Returns
      -------
      ndarray
          full tensor
      """
      return partial_fold(
          matrix,
          mode=0,
          shape=shape,
          skip_begin=skip_begin,
          skip_end=skip_end,
      )
  
file_path: tensorly/tensorly/base.py
imports: from math import prod
  from .None import backend
label_desc: Use image node_id 8 for calling a global function with example usage: partial_vec_to_tensor(matrix, shape, skip_begin, skip_end) and returns: partial_fold