def note_fits_annotations(note, annotations):
    """Return whether a note matches a function's annotations."""
    for ann in annotations:
        if note[ann] != annotations[ann]:
            return False
    return True