code: def test_tt_matrix_manipulation():
      """Test for tt_matrix manipulation"""
      shape = (2, 2, 2, 3, 3, 3)
      n_rows, n_cols = 8, 27
      tt_matrix = random.random_tt_matrix(shape, rank=2, full=False)
      rec = tt_matrix_to_tensor(tt_matrix)
      assert tl.shape(rec) == shape
  
      mat = tt_matrix_to_matrix(tt_matrix)
      assert tl.shape(mat) == (n_rows, n_cols)
  
      vec = tt_matrix_to_vec(tt_matrix)
      assert tl.shape(vec) == (n_rows * n_cols,)
  
imports: import tensorly
  from tensorly import random
  from ..tt_matrix import tt_matrix_to_matrix, tt_matrix_to_tensor, tt_matrix_to_vec
label_desc: Use image node_id 1 for calling a global function with example usage: test_tt_matrix_manipulation() without return types