code: def __scale_image(image, scale: float):
          
          height, width, _ = image.shape
  
          width_scaled = int(np.ceil(width * scale))
          height_scaled = int(np.ceil(height * scale))
  
          im_data = cv2.resize(image, (width_scaled, height_scaled), interpolation=cv2.INTER_AREA)
  
          # Normalize the image's pixels
          im_data_normalized = (im_data - 127.5) * 0.0078125
  
          return im_data_normalized
docs: Scales the image to a given scale.
          :param image:
          :param scale:
          :return: