code: def do_upscale(self, img, selected_model):
      try:
          model = self.load_model(selected_model)
      except Exception as e:
          print(
              f"Unable to load ESRGAN model {selected_model}: {e}",
              file=sys.stderr,
          )
          return img
      model.to(devices.device_esrgan)
      img = esrgan_upscale(model, img)
      return img
  
file_path: stable-diffusion-webui/modules/esrgan_model.py
imports: import sys
  import numpy
  import torch
  from PIL import Image
  import modules.esrgan_model_arch
  from modules import modelloader, images, devices
  from modules.shared import opts
  from modules.upscaler import Upscaler, UpscalerData
label_desc: Use image node_id 2 for calling the UpscalerESRGAN obj's underlying member method code with example usage: obj.do_upscale(img, selected_model) and returns: img, img