def METHOD_NAME(
    categories: List[str], valid_categories: List[str]
) -> None:
    """
    Check to see if each category in a list is valid
    Args:
        categories: list of category strings to check
        valid_categories: list of valid categories
    Returns:
    """
    for category in categories:
        FidesKey.validate(category)
        if category not in valid_categories:
            raise ValueError