code: def test_compress_execution(setup):
      data = np.array([[1, 2], [3, 4], [5, 6]])
      a = tensor(data, chunk_size=1)
  
      t = compress([0, 1], a, axis=0)
  
      res = t.execute().fetch()
      expected = np.compress([0, 1], data, axis=0)
      np.testing.assert_array_equal(res, expected)
  
      t = compress([0, 1], a, axis=1)
  
      res = t.execute().fetch()
      expected = np.compress([0, 1], data, axis=1)
      np.testing.assert_array_equal(res, expected)
  
      t = a.compress([0, 1, 1])
  
      res = t.execute().fetch()
      expected = np.compress([0, 1, 1], data)
      np.testing.assert_array_equal(res, expected)
  
      t = compress([False, True, True], a, axis=0)
  
      res = t.execute().fetch()
      expected = np.compress([False, True, True], data, axis=0)
      np.testing.assert_array_equal(res, expected)
  
      t = compress([False, True], a, axis=1)
  
      res = t.execute().fetch()
      expected = np.compress([False, True], data, axis=1)
      np.testing.assert_array_equal(res, expected)
  
      with pytest.raises(np.AxisError):
          compress([0, 1, 1], a, axis=1)
  
      # test order
      data = np.asfortranarray([[1, 2], [3, 4], [5, 6]])
      a = tensor(data, chunk_size=1)
  
      t = compress([0, 1, 1], a, axis=0)
  
      res = t.execute().fetch()
      expected = np.compress([0, 1, 1], data, axis=0)
      np.testing.assert_array_equal(res, expected)
      assert res.flags["C_CONTIGUOUS"] == expected.flags["C_CONTIGUOUS"]
      assert res.flags["F_CONTIGUOUS"] == expected.flags["F_CONTIGUOUS"]
  
      t = compress(
          [0, 1, 1],
          a,
          axis=0,
          out=tensor(np.empty((2, 2), order="F", dtype=int)),
      )
  
      res = t.execute().fetch()
      expected = np.compress(
          [0, 1, 1],
          data,
          axis=0,
          out=np.empty((2, 2), order="F", dtype=int),
      )
      np.testing.assert_array_equal(res, expected)
      assert res.flags["C_CONTIGUOUS"] == expected.flags["C_CONTIGUOUS"]
      assert res.flags["F_CONTIGUOUS"] == expected.flags["F_CONTIGUOUS"]
  
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 10 for calling a global function with example usage: test_compress_execution(setup) without return types