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