def unflat_tag_filterflags(tags_list, **kwargs):
    from wbia import tag_funcs
    (flat_tags, cumsum) = ut.invertible_flatten2(tags_list)
    flat_flags = tag_funcs.filterflags_general_tags(flat_tags, **kwargs)
    flags = np.array(ut.unflatten2(flat_flags, cumsum))
    return flags
def unflat_tag_filterflags(tags_list, **kwargs):
    from wbia import tag_funcs
    (flat_tags, cumsum) = ut.invertible_flatten2(tags_list)
    flat_flags = tag_funcs.filterflags_general_tags(flat_tags, **kwargs)
    flags = np.array(ut.unflatten2(flat_flags, cumsum))
    return flags