code: def test_return_mean_ptp_xor():
      f = 255 * np.random.random((128, 128))
      f = f.astype(np.uint8)
      with pytest.raises(ValueError):
          mh.features.haralick(f, return_mean=1, return_mean_ptp=1)
  
imports: import numpy
  from mahotas.features import texture
  import mahotas
  import mahotas.features._texture
  import pytest
label_desc: Use image node_id 21 for calling a global function with example usage: test_return_mean_ptp_xor() without return types