code: def tt_matrix_to_vec(tt_matrix):
      """Returns the tensor defined by its TT-Matrix format ('factors') into
         its vectorized format
  
      Parameters
      ----------
      factors : list of 3D-arrays
          TT factors
  
      Returns
      -------
      1-D array
          format of tensor defined by 'factors'
      """
      return tl.tensor_to_vec(tt_matrix_to_tensor(tt_matrix))
  
imports: import tensorly
  from .tenalg import _tt_matrix_to_tensor
  from ._factorized_tensor import FactorizedTensor
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: tt_matrix_to_vec(tt_matrix) and returns: tl