def _scale_image(image, side_length):
 return image.resize((side_length, side_length), Image.ANTIALIAS)

def _scale_image ( image , side_length ) : return image . resize ( ( side_length , side_length ) , Image . ANTIALIAS )
given a pil .