code: def add_dynamic_kb(kbname, tag, collection="", searchwith=""):
      
      kb_id = add_kb(kb_name=kbname, kb_type='dynamic')
      save_kb_dyn_config(kb_id, tag, searchwith, collection)
      return kb_id
docs: A convenience method.