code: def test_ptp_execution(setup):
      x = arange(4, chunk_size=1).reshape(2, 2)
  
      t = ptp(x, axis=0)
  
      res = t.execute().fetch()
      expected = np.ptp(np.arange(4).reshape(2, 2), axis=0)
      np.testing.assert_equal(res, expected)
  
      t = ptp(x, axis=1)
  
      res = t.execute().fetch()
      expected = np.ptp(np.arange(4).reshape(2, 2), axis=1)
      np.testing.assert_equal(res, expected)
  
      t = ptp(x)
  
      res = t.execute().fetch()
      expected = np.ptp(np.arange(4).reshape(2, 2))
      np.testing.assert_equal(res, 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 4 for calling a global function with example usage: test_ptp_execution(setup) without return types