def is_member(hypothesis, attributes_subset, attributes_superset):
    """
    Tells if a given attribute set is a memeber of hypothesis or not, i.e
    if it is closed or not.
    Parameters:
    -----------------------------------
    hypothesis : set
        Hypothesis set under consideration
    attributes_subset : set
        The attribute set to be tested for membership
    attributes_superset : function
        Function to compute closure of an attribute set
    """
    attributes_subset = set(attributes_subset)
    return(attributes_subset == attributes_superset(attributes_subset))