code: def test_tr_to_tensor(shape1, shape2, shape3):
      # Create ground truth TR factors
      factors = [
          ivy.random_uniform(shape=shape1),
          ivy.random_uniform(shape=shape2),
          ivy.random_uniform(shape=shape3),
      ]
  
      # Create tensor
      tensor = ivy.einsum("iaj,jbk,kci->abc", *factors)
  
      # Check that TR factors re-assemble to the original tensor
      assert np.allclose(
          tensor,
          ivy.TRTensor.tr_to_tensor(factors),
          atol=1e-6,
          rtol=1e-6,
      )
  
imports: import ivy
  import numpy
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_tr_to_tensor(shape1, shape2, shape3) without return types