def METHOD_NAME(groups, exaile):
    '''Create a playlist based on groups, and user input in a shiny dialog'''
    dialog = gt_widgets.GroupTaggerQueryDialog(groups)
    if dialog.run() == Gtk.ResponseType.OK:
        name, search_string = dialog.get_search_params()
        _create_search_playlist(name, search_string, exaile)
    dialog.destroy()