def test_image_documents_to_base64_invalid_metadata():
    """Test handling of document with invalid metadata path."""
    document = ImageDocument(metadata={"file_path": ""})
    result = image_documents_to_base64([document])
    assert result == []
Test handling of document with invalid metadata path.
llama-index-core/tests/multi_modal_llms/test_generic_utils.py