code: def test_tensor_train_cross_3():
      """Test for tensor-train"""
      rng = tl.check_random_state(1234)
  
      ## Test 3
      tol = 10e-5
      tensor = tl.tensor(rng.random_sample([3, 3, 3]))
      factors = tensor_train_cross(
          tensor, (1, 3, 3, 1), random_state=rng
      )
      reconstructed_tensor = tt_to_tensor(factors)
      error = tl.norm(reconstructed_tensor - tensor, 2)
      error /= tl.norm(tensor, 2)
      assert_(error < tol, "norm 2 of reconstruction higher than tol")
  
file_path: tensorly/tensorly/contrib/decomposition/tests/test_mps_decomposition_cross.py
imports: import tensorly
  import pytest
  import numpy
  import itertools
  from .._tt_cross import tensor_train_cross
  from ....tt_tensor import tt_to_tensor
  from tensorly.testing import assert_
label_desc: Use image node_id 3 for calling a global function with example usage: test_tensor_train_cross_3() without return types