code: def test_batched_outer_product():
      """Test batched_outer_dot"""
      rng = tl.check_random_state(1234)
      batch_size = 3
  
      X = tl.tensor(rng.random_sample((batch_size, 4, 5, 6)))
      Y = tl.tensor(rng.random_sample((batch_size, 3)))
      Z = tl.tensor(rng.random_sample((batch_size, 2)))
      res = batched_outer([X, Y, Z])
      true_res = tenalg.tensordot(X, Y, (), batched_modes=0)
      true_res = tenalg.tensordot(true_res, Z, (), batched_modes=0)
  
      testing.assert_array_almost_equal(res, true_res)
  
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 2 for calling a global function with example usage: test_batched_outer_product() without return types