code: def get_kbd_values(kbname, searchwith=""):
      
      kb = get_kb_by_name(kbname)
      kbid = kb.id
      if not kbid:
          return []
      kbtype = kb.kbtype
      if not kbtype:
          return []
      if kbtype != 'd':
          return []
      return get_kbd_values_by_def(kb.kbdefs.to_dict(), searchwith)
docs: Return a list of values by searching a dynamic kb.
  
      :param kbname:     name of the knowledge base
      :param searchwith: a term to search with
      :return: list of values