code: def test_tr_to_tensor():
      # Create ground truth TR factors
      factors = [
          tl.randn((2, 4, 3)),
          tl.randn((3, 5, 2)),
          tl.randn((2, 6, 2)),
      ]
  
      # Create tensor
      tensor = tl.einsum("iaj,jbk,kci->abc", *factors)
  
      # Check that TR factors re-assemble to the original tensor
      assert_allclose(
          tensor, tr_to_tensor(factors), atol=1e-6, rtol=1e-6
      )
  
imports: import numpy
  import tensorly
  from ..random import random_tr
  from ..testing import assert_allclose, assert_equal, assert_raises, assert_
  from ..tr_tensor import tr_to_tensor, _validate_tr_tensor, _tr_n_param, validate_tr_rank
label_desc: Use image node_id 2 for calling a global function with example usage: test_tr_to_tensor() without return types