def modality(note):
    """Extract modality from note in booth schedule

    Args:
        note (str): The note description

    Returns:
        str: The modality of the course
    """

    modality_dict = {
        "In-Person Only": "IP",
        "Remote-Only": "R",
        "Dual Modality": "D",
        "Faculty In-Person, Dual Modality": "D-FIP",
        "Faculty Remote, Dual Modality": "D-FR",
    }
    if note in modality_dict:
        return modality_dict[note]
    else:
        return ""