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