def METHOD_NAME(attendance_mode: str) -> str:
    for mode_choice in ShiftUserData.SHIFT_ATTENDANCE_MODE_CHOICES:
        if mode_choice[0] == attendance_mode:
            return mode_choice[1]
    return _(f"Unknown mode {attendance_mode}")