code: def do_upscale(self, img, path):
      try:
          ldsr = self.load_model(path)
      except Exception:
          errors.report(
              f"Failed loading LDSR model {path}", exc_info=True
          )
          return img
      ddim_steps = shared.opts.ldsr_steps
      return ldsr.super_resolution(img, ddim_steps, self.scale)
  
file_path: stable-diffusion-webui/extensions-builtin/LDSR/scripts/ldsr_model.py
imports: import os
  from modules.modelloader import load_file_from_url
  from modules.upscaler import Upscaler, UpscalerData
  from ldsr_model_arch import LDSR
  from modules import shared, script_callbacks, errors
  import sd_hijack_autoencoder
  import sd_hijack_ddpm_v1
label_desc: Use image node_id 3 for calling the UpscalerLDSR obj's underlying member method code with example usage: obj.do_upscale(img, path) and returns: ldsr, img