code: def get_kbr_values(self, searchkey="", searchvalue="", searchtype='s'):
          
          import warnings
          warnings.warn("The function is deprecated. Please use the "
                        "`KnwKBRVAL.query_kb_mappings()` instead. "
                        "E.g. [(kval.m_value,) for kval in "
                        "KnwKBRVAL.query_kb_mappings(kb_id).all()]")
          # prepare filters
          if searchtype == 's':
              searchkey = '%' + searchkey + '%'
          if searchtype == 's' and searchvalue:
              searchvalue = '%' + searchvalue + '%'
          if searchtype == 'sw' and searchvalue:  # startswith
              searchvalue = searchvalue + '%'
          if not searchvalue:
              searchvalue = '%'
          # execute query
          return db.session.execute(
              db.select([KnwKBRVAL.m_value],
                        db.and_(KnwKBRVAL.id_knwKB.like(self.id),
                                KnwKBRVAL.m_value.like(searchvalue),
                                KnwKBRVAL.m_key.like(searchkey))))
docs: Return dicts of 'key' and 'value' from a knowledge base.
  
          :param kb_name the name of the knowledge base
          :param searchkey search using this key
          :param searchvalue search using this value
          :param searchtype s=substring, e=exact, sw=startswith
          :return a list of dictionaries [{'key'=>x, 'value'=>y},..]