def _label_class_from_tag(label_type):
    """Maps Label Studio parent tag to FiftyOne Label type."""
    reverse = {
        v["parent_tag"].lower(): v["label"] for v in _LABEL_TYPES.values()
    }
    if label_type in reverse:
        return reverse[label_type]

    raise ValueError("Unknown label type: %s" % label_type)
Maps Label Studio parent tag to FiftyOne Label type.
fiftyone/utils/labelstudio.py