def get(key, default=-1):
        """Backport support for original codes."""
        if isinstance(key, int):
            return TOS_PRE(key)
        if key not in TOS_PRE._member_map_:
            extend_enum(TOS_PRE, key, default)
        return TOS_PRE[key]