def get_pil_from_url(url):
    """Download and convert an image from a URL to a PIL Image object."""
    response = requests.get(url, verify=True, timeout=20)
    image = Image.open(BytesIO(response.content))
    return image.convert("RGB")
Download and convert an image from a URL to a PIL Image object.
examples/clip/openvino/user_script.py