def METHOD_NAME(file_path: str) -> Set[Warning]:
    """Load a set of warnings from file."""
    with open(file_path, "r") as f:
        data = json.load(f)
    try:
        return set([Warning(**warning) for warning in data[WARNINGS_KEY]])
    except KeyError:  # no warnings found
        return set()