def get_pipeline(args):
    """ Extract pipeline plugin/argument pairs from arguments """
    ret_pipeline = list()

    str_arguments = " ".join(args)
    plugin_groups = str_arguments.split("@@")
    if plugin_groups[0] != "":
        return ret_pipeline

    for plugin_group in plugin_groups[1:]:
        plugin_group = plugin_group.rstrip()
        tokens = plugin_group.split(" ")
        plugin = tokens[0]
        plugin_args = " ".join(tokens[1:])
        ret_pipeline.append((plugin, plugin_args))

    return ret_pipeline