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