code: def test_return_mean_ptp():
      f = 255 * np.random.random((128, 128))
      f = f.astype(np.uint8)
      fs = mh.features.haralick(f)
      fs_mean = mh.features.haralick(f, return_mean=1)
      fs_mean_ptp = mh.features.haralick(f, return_mean_ptp=1)
      assert np.all(fs.mean(0) == fs_mean)
      assert np.all(fs.mean(0) == fs_mean_ptp[: fs.shape[1]])
      assert np.all(fs.ptp(0) == fs_mean_ptp[fs.shape[1] :])
  
imports: import numpy
  from mahotas.features import texture
  import mahotas
  import mahotas.features._texture
  import pytest
label_desc: Use image node_id 20 for calling a global function with example usage: test_return_mean_ptp() without return types