def dict_in_dict(d, subset_d):
    """
    Checks if the items in a dictionary are all contained within some other
    dictionary. This is used to check if the schema created contains all the
    expected information.
    """
    return all([i in d.items() for i in subset_d.items()])