code: def enhance_speckles(self, image, radius, accuracy):
      data = self.__mask(image.pixel_data, image.mask)
  
      footprint = self.__structuring_element(radius, image.volumetric)
  
      if accuracy == "Slow" or radius <= 3:
          result = skimage.morphology.white_tophat(
              data, footprint=footprint
          )
      else:
          #
          # white_tophat = img - opening
          #              = img - dilate(erode)
          #              = img - maximum_filter(minimum_filter)
          minimum = scipy.ndimage.filters.minimum_filter(
              data, footprint=footprint
          )
  
          maximum = scipy.ndimage.filters.maximum_filter(
              minimum, footprint=footprint
          )
  
          result = data - maximum
  
      return self.__unmask(result, image.pixel_data, image.mask)
  
imports: import centrosome.filter
  import numpy
  import scipy.ndimage
  import skimage.exposure
  import skimage.filters
  import skimage.morphology
  import skimage.transform
  from cellprofiler_core.image import Image
  from cellprofiler_core.module import ImageProcessing
  from cellprofiler_core.setting import Binary
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.range import IntegerRange
  from cellprofiler_core.setting.text import Float
  from cellprofiler_core.setting.text import Integer
  from cellprofiler.modules import _help
label_desc: Use image node_id 8 for calling the EnhanceOrSuppressFeatures obj's underlying member method code with example usage: obj.enhance_speckles(image, radius, accuracy) and returns: self