code: def test_tt_to_tensor(n1, n2, n3, shape1, shape2, shape3):
      tensor = ivy.zeros((n1, n2, n3))
  
      for i in range(n1):
          for j in range(n2):
              for k in range(n3):
                  tensor[i][j][k] = (i + 1) + (j + 1) + (k + 1)
  
      tensor = ivy.array(tensor)
  
      factors = [None] * 3
  
      factors[0] = ivy.zeros(shape1)
      factors[1] = ivy.zeros(shape2)
      factors[2] = ivy.zeros(shape3)
  
      for i in range(3):
          for j in range(4):
              for k in range(2):
                  factors[0][0][i][0] = i + 1
                  factors[0][0][i][1] = 1
  
                  factors[1][0][j][0] = 1
                  factors[1][0][j][1] = 0
                  factors[1][1][j][0] = j + 1
                  factors[1][1][j][1] = 1
  
                  factors[2][0][k][0] = 1
                  factors[2][1][k][0] = k + 1
  
      factors = [ivy.array(f) for f in factors]
  
      np.testing.assert_array_almost_equal(
          tensor, ivy.TTTensor.tt_to_tensor(factors)
      )
  
file_path: ivy/ivy_tests/test_ivy/test_misc/test_factorized_tensor/test_tt_tensor.py
imports: import ivy
  import numpy
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_tt_to_tensor(n1, n2, n3, shape1, shape2, shape3) without return types