def coerce_subset_groups(collect):
    for data in collect:
        for subset in data.subsets:
            if not isinstance(subset, GroupedSubset):
                warn("DataCollection has subsets outside of "
                     "subset groups, which are no longer supported. "
                     "Moving to subset groups")
                subset.delete()
                grp = collect.new_subset_group()
                grp.subset_state = subset.subset_state
                grp.style = subset.style
                grp.label = subset.label
Converts a sequence of strings into a list of RichString.
dataset/ETHPy150Open glue-viz/glue/glue/core/subset_group.py/coerce_subset_groups--crossover with--dataset/ETHPy150Open vilcans/screenplain/screenplain/parsers/fountain.py/_sequence_to_rich