def check_same_flags(flag_dict_1, flag_dict_2):
    'Return True if flag dicts contain the same flags regardless of order.'
    types = set(flag_dict_1.keys()).union(set(flag_dict_2.keys()))
    for t in types:
        values1 = set(flag_dict_1.get(t, []))
        values2 = set(flag_dict_2.get(t, []))
        assert (values1 == values2)
Return True if flag dicts contain the same flags regardless of order.
def check_same_flags(flag_dict_1, flag_dict_2):
    
    types = set(flag_dict_1.keys()).union(set(flag_dict_2.keys()))
    for t in types:
        values1 = set(flag_dict_1.get(t, []))
        values2 = set(flag_dict_2.get(t, []))
        assert (values1 == values2)