code: def run(self, workspace):
      x_name = self.x_name.value
  
      y_name = self.y_name.value
  
      images = workspace.image_set
  
      x = images.get_image(x_name)
  
      dimensions = x.dimensions
  
      x_data = x.pixel_data
  
      y_data = medianfilter(x_data, self.window.value, mode="constant")
  
      y = Image(
          dimensions=dimensions,
          image=y_data,
          parent_image=x,
          convert=False,
      )
  
      images.add(y_name, y)
  
      if self.show_window:
          workspace.display_data.x_data = x_data
  
          workspace.display_data.y_data = y_data
  
          workspace.display_data.dimensions = dimensions
  
file_path: CellProfiler/src/frontend/cellprofiler/modules/medianfilter.py
imports: from cellprofiler_core.image import Image
  from cellprofiler_core.module import ImageProcessing
  from cellprofiler_core.setting.text import Integer
  from cellprofiler_library.modules import medianfilter
label_desc: Use image node_id 4 for calling the MedianFilter obj's underlying member method code with example usage: obj.run(workspace) without return types