code: def test_outer_product():
      """Test outer_dot"""
      rng = tl.check_random_state(1234)
  
      X = tl.tensor(rng.random_sample((4, 5, 6)))
      Y = tl.tensor(rng.random_sample((3, 4)))
      Z = tl.tensor(rng.random_sample((2)))
      tdot = outer([X, Y, Z])
      true_dot = tenalg.tensordot(X, Y, ())
      true_dot = tenalg.tensordot(true_dot, Z, ())
      testing.assert_array_almost_equal(tdot, true_dot)
  
imports: import tensorly
  from tensorly import testing
  from tensorly import random
  from tensorly import tenalg
  from ..None import outer, batched_outer
label_desc: Use image node_id 1 for calling a global function with example usage: test_outer_product() without return types