code: def test_take_execution(setup):
      data = np.random.rand(10, 20, 30)
      t = tensor(data, chunk_size=10)
  
      a = t.take([4, 1, 2, 6, 200])
  
      res = a.execute().fetch()
      expected = np.take(data, [4, 1, 2, 6, 200])
      np.testing.assert_array_equal(res, expected)
  
      a = take(t, [5, 19, 2, 13], axis=1)
  
      res = a.execute().fetch()
      expected = np.take(data, [5, 19, 2, 13], axis=1)
      np.testing.assert_array_equal(res, expected)
  
      with pytest.raises(ValueError):
          take(t, [1, 3, 4], out=tensor(np.random.rand(4)))
  
      out = tensor([1, 2, 3, 4])
      a = take(t, [4, 19, 2, 8], out=out)
  
      res = out.execute().fetch()
      expected = np.take(data, [4, 19, 2, 8])
      np.testing.assert_array_equal(res, expected)
  
imports: import numpy
  import scipy.sparse
  import pytest
  from ....config import options
  from ...None import mod, stack, hstack
  from ...datasource import tensor, arange, zeros
  from ..None import take, compress, extract, choose, unravel_index, nonzero, flatnonzero, fill_diagonal
label_desc: Use image node_id 9 for calling a global function with example usage: test_take_execution(setup) without return types