code: def tt_matrix_to_matrix(tt_matrix):
      """Reconstruct the original matrix that was tensorized and compressed in the TT-Matrix format
  
          Re-assembles 'factors', which represent a tensor in TT-Matrix format
          into the corresponding matrix
  
      Parameters
      ----------
      factors: list of 4D-arrays
                TT-Matrix factors (known as core) of shape (rank_k, left_dim_k, right_dim_k, rank_{k+1})
  
      Returns
      -------
      output_matrix: 2D-array
          matrix whose TT-Matrix decomposition was given by 'factors'
      """
      in_shape = tuple(c.shape[1] for c in tt_matrix)
      return tl.reshape(
          tt_matrix_to_tensor(tt_matrix), (np.prod(in_shape), -1)
      )
  
imports: import tensorly
  from .tenalg import _tt_matrix_to_tensor
  from ._factorized_tensor import FactorizedTensor
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: tt_matrix_to_matrix(tt_matrix) and returns: tl