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