def get_doc_by_note_name(docs, note_name: str):
    """
    Utility function to return the first document with the specified note name.
    """
    for doc in docs:
        if doc.metadata.get("note_name") == note_name:
            return doc
    return None

    Utility function to return the first document with the specified note name.
    
llama-index-integrations/readers/llama-index-readers-obsidian/tests/test_readers_obsidian.py