import csv


def load_priority_endpoints(filepath):
    """Load the list of priority endpoints"""
    expected_header = ["Code"]
    col_code = 0
    with open(filepath) as ff:
        reader = csv.reader(ff)
        assert next(reader) == expected_header  # check and discard header
        prios = {row[col_code] for row in reader}
    return prios