code: def test_median_execution(setup):
      raw = np.random.rand(20, 10)
      a = tensor(raw, chunk_size=7)
      r = median(a)
  
      result = r.execute().fetch()
      expected = np.median(raw)
  
      np.testing.assert_array_equal(result, expected)
  
      r = median(a, axis=1)
  
      result = r.execute().fetch()
      expected = np.median(raw, axis=1)
  
      np.testing.assert_array_equal(result, expected)
  
imports: import numpy
  import scipy.sparse
  import pytest
  from ....utils import ignore_warning
  from ...datasource import arange, tensor, empty
  from ...base import sort
  from ...merge import stack
  from ...reduction import all
  from ..None import average, bincount, cov, corrcoef, ptp, digitize, histogram_bin_edges, histogram, quantile, percentile, median
  from ..quantile import INTERPOLATION_TYPES
label_desc: Use image node_id 10 for calling a global function with example usage: test_median_execution(setup) without return types