class_docstr: Create a mode filter. Picks the most frequent pixel value in a box with the
  given size.  Pixel values that occur only once or twice are ignored; if no
  pixel value occurs more than twice, the original pixel value is preserved.
  
  :param size: The kernel size, in pixels.
class_docstr_tok: ["Create","a","mode","filter",".","Picks","the","most","frequent","pixel","value","in","a","box","with","the","given","size",".","Pixel","values","that","occur","only","once","or","twice","are","ignored",";","if","no","pixel","value","occurs","more","than","twice",",","the","original","pixel","value","is","preserved",".",":","param","size",":","The","kernel","size",",","in","pixels","."]
code: def __init__(self, size=3):
      self.size = size
  
imports: from __future__ import annotations
  import functools
label_desc: Use image node_id 1 to create a new ModeFilter object from inherited base classes: Filter with example: obj = ModeFilter(size)