code: def upsample_image(image: np.ndarray, scale: int) -> np.ndarray:
      """Upsamples the image by an integer factor."""
      if scale == 1:
          return image
  
      height, width = image.shape[:2]
      out_height, out_width = height * scale, width * scale
      resized = cv2.resize(
          image, (out_width, out_height), cv2.INTER_AREA
      )
      return resized
  
imports: import math
  from typing import Tuple
  from absl import logging
  import cv2
  import imageio
  import numpy
  from PIL import Image
  from nerfies import gpath
  from nerfies import types
label_desc: Use image node_id 3 for calling a global function with example usage: upsample_image(image, scale) and returns: resized, image