from PIL import Image def load_image(image_path): image = Image.open(image_path) # Load image from path return image