code: def do_upscale(self, img, selected_model=None):
      return img.resize(
          (int(img.width * self.scale), int(img.height * self.scale)),
          resample=LANCZOS,
      )
  
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 1 for calling the UpscalerLanczos obj's underlying member method code with example usage: obj.do_upscale(img, selected_model) and returns: img