code: def __init__(self, dirname=None):
      super().__init__(False)
      self.name = "Nearest"
      self.scalers = [UpscalerData("Nearest", None, self)]
  
imports: import os
  from abc import abstractmethod
  import PIL
  from PIL import Image
  import modules.shared
  from modules import modelloader, shared
label_desc: Use image node_id 3 to create a new UpscalerNearest object from inherited base classes: Upscaler with example: obj = UpscalerNearest(dirname)