code: def test_extract_execution(setup):
      data = np.arange(12).reshape((3, 4))
      a = tensor(data, chunk_size=2)
      condition = mod(a, 3) == 0
  
      t = extract(condition, a)
  
      res = t.execute().fetch()
      expected = np.extract(np.mod(data, 3) == 0, data)
      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 11 for calling a global function with example usage: test_extract_execution(setup) without return types