code: def crop_resize_image(image: np.ndarray, size) -> np.ndarray:
      
      width, height = image.size
      if width > height:
          left = (width - height) / 2
          right = width - left
          top = 0
          bottom = height
      else:
          top = (height - width) / 2
          bottom = height - top
          left = 0
          right = width
      image = image.crop((left, top, right, bottom))
      image = image.resize(size, Image.ANTIALIAS)
      return image
docs: Resize the input image.
  
      :param image: Original image which is a  PIL object.
      :param size: Tuple of height and width to resize the image to.
      :return: Resized image which is a PIL object