from typing import OrderedDict


def split_main_supp_tags(tags):
    """splits the labels into those for the main manuscript and
    for the supplementary"""
    supp_tags = OrderedDict()
    main_tags = OrderedDict()
    for tag in tags:
        store = supp_tags if tag.startswith("sup") else main_tags
        store[tag] = tags[tag]
    return main_tags, supp_tags