code: def reshape_image(
      image: np.ndarray, shape: Tuple[int, int]
  ) -> np.ndarray:
      """Reshapes the image to the given shape."""
      out_height, out_width = shape
      return cv2.resize(
          image, (out_width, out_height), interpolation=cv2.INTER_AREA
      )
  
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 4 for calling a global function with example usage: reshape_image(image, shape) and returns: cv2