def get_root_tag(node):
    tag = Tag_pattern_.match(node.tag).groups()[-1]
    rootClass = GDSClassesMapping.get(tag)
    if rootClass is None:
        rootClass = globals().get(tag)
    return tag, rootClass
dataset/ETHPy150Open STIXProject/python-stix/stix/bindings/extensions/marking/terms_of_use_marking.py/get_root_tag/original