code: def upscale_without_tiling(model, img):
      img = np.array(img)
      img = img[:, :, ::-1]
      img = np.ascontiguousarray(np.transpose(img, (2, 0, 1))) / 255
      img = torch.from_numpy(img).float()
      img = img.unsqueeze(0).to(devices.device_esrgan)
      with torch.no_grad():
          output = model(img)
      output = output.squeeze().float().cpu().clamp_(0, 1).numpy()
      output = 255.0 * np.moveaxis(output, 0, 2)
      output = output.astype(np.uint8)
      output = output[:, :, ::-1]
      return Image.fromarray(output, "RGB")
  
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 4 for calling a global function with example usage: upscale_without_tiling(model, img) and returns: Image