code: def test_mode_dot_tensorly(X, U, true_res):
      X = ivy.array(X)
      U = ivy.array(U)
      true_res = ivy.array(true_res)
      res = ivy.mode_dot(X, U, 0)
      assert np.allclose(true_res, res, atol=1e-1, rtol=1e-1)
  
imports: import math
  from hypothesis import strategies
  from hypothesis import assume
  import numpy
  import pytest
  import itertools
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_test, BackendHandler
  import ivy
label_desc: Use image node_id 42 for calling a global function with example usage: test_mode_dot_tensorly(X, U, true_res) without return types