code: def test_inplace_output(self):
      # rank filters are not supposed to filter inplace
  
      footprint = disk(20)
      image = (np.random.rand(500, 500) * 256).astype(np.uint8)
      out = image
      with pytest.raises(NotImplementedError):
          rank.mean(image, footprint, out=out)
  
imports: import numpy
  import pytest
  from skimage import data, morphology, util
  from skimage._shared._warnings import expected_warnings
  from skimage._shared.testing import assert_allclose, assert_array_almost_equal, assert_equal, fetch, run_in_parallel
  from skimage.filters import rank
  from skimage.filters.rank import __all__
  from skimage.filters.rank import subtract_mean
  from skimage.morphology import ball, disk, gray
  from skimage.util import img_as_float, img_as_ubyte
label_desc: Use image node_id 12 for calling the TestRank obj's underlying member method code with example usage: obj.test_inplace_output() without return types