class_docstr: Create a median filter. Picks the median pixel value in a window with the
  given size.
  
  :param size: The kernel size, in pixels.
class_docstr_tok: ["Create","a","median","filter",".","Picks","the","median","pixel","value","in","a","window","with","the","given","size",".",":","param","size",":","The","kernel","size",",","in","pixels","."]
code: def __init__(self, size=3):
      self.size = size
      self.rank = size * size // 2
  
imports: from __future__ import annotations
  import functools
label_desc: Use image node_id 1 to create a new MedianFilter object from inherited base classes: RankFilter with example: obj = MedianFilter(size)