def test_image_documents_to_base64_failed_url():
    """Test handling of failed URL requests."""
    document = ImageDocument(image_url=EXP_IMAGE_URLS[0])
    with patch("requests.get"):
        result = image_documents_to_base64([document])

    assert result == []
Test handling of failed URL requests.
llama-index-core/tests/multi_modal_llms/test_generic_utils.py