def extract_set(root: dict, nested_key_to_extract) -> set:
    """Extract value for given key from every dict in root."""

    extract = set()
    for root_key in root:
        extract.add(root[root_key][nested_key_to_extract])
    return extract