def rescale_pixel_values(images, order="C"):
    """
    Rescale the range of values in images to be between [0, 1]
    """
    images = np.asarray(images, order=order).astype("float32")
    images -= images.min()
    images /= images.max()
    return images
Rescale the range of values in images to be between [0, 1]