def getSubsetTuples(dim_dict, subset_indices):
    """
    returns a list of tuples that represents a subset of dim_dict defined by subset_indices
    
    Inputs:
        dim_dict (dict): a dictionary of (key, value) = (label for the level, list of indices for the level)
                         Most often comes from one element in the dict returned by getLevels()
                         in the Schema_schemaname.py files
        subset_indices (list): a list of integers representing the levels to keep as part of the subset
    
    Outputs:
        a list of tuples (label, level)
    
    Notes:
        Easier and more robust than copying large lists of (label, level) pairs by hand
    """
    grouping = []
    items = list(dim_dict.items())
    
    for ind in subset_indices:
        for label, level in items:
            if level[0] == ind:
                grouping.append((label, level))
                break
    
    return grouping