def all_with_label(pages, label):
    """
    pages: list(Page)
    label: str

    returns: list(Page)

    Filter for pages that are tagged with the given label.
    """
    return [page for page in pages if label in page.get("labels", [])]