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