code: def procrustes(matrix):
      """Procrustes operator
  
      Parameters
      ----------
      matrix : ndarray
  
      Returns
      -------
      ndarray
          matrix on which the Procrustes operator has been applied
          has the same shape as the original tensor
  
  
      See also
      --------
      svd_thresholding : SVD-thresholding operator
      """
      U, _, V = tl.truncated_svd(matrix, n_eigenvecs=min(matrix.shape))
      return tl.dot(U, V)
  
file_path: tensorly/tensorly/tenalg/proximal.py
imports: import tensorly
  import numpy
label_desc: Use image node_id 14 for calling a global function with example usage: procrustes(matrix) and returns: tl