def imresize(arr, size, **kwargs):
    from PIL import Image
    size_list = [int((arr.shape[0] * size)), int((arr.shape[1] * size))]
    return np.array(Image.fromarray(arr).resize(size_list))
def imresize(arr, size, **kwargs):
    from PIL import Image
    size_list = [int((arr.shape[0] * size)), int((arr.shape[1] * size))]
    return np.array(Image.fromarray(arr).resize(size_list))