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