code: def setup_method(self):
      np.random.seed(0)
      # This image is used along with @run_in_parallel
      # to ensure that the same seed is used for each thread.
      self.image = np.random.rand(25, 25)
      np.random.seed(0)
      self.volume = np.random.rand(10, 10, 10)
      # Set again the seed for the other tests.
      np.random.seed(0)
      self.footprint = morphology.disk(1)
      self.footprint_3d = morphology.ball(1)
      self.refs = ref_data
      self.refs_3d = ref_data_3d
  
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 1 for calling the TestRank obj's underlying member method code with example usage: obj.setup_method() without return types