code: def set_args():
      app.extensions["args"].update(
          {
              name: value
              for name, value in request.form.items()
              if not name.endswith("[]")
          }
      )
      targets = request.form.getlist("targets[]")
      if targets != app.extensions["args"]["targets"]:
          app.extensions["dag"] = None
      app.extensions["args"]["targets"] = targets
      return ""
  
file_path: snakemake/snakemake/gui.py
imports: import json
  import os
  import threading
  from flask import Flask, render_template, request
  from snakemake.common import __version__
label_desc: Use image node_id 13 for calling a global function with example usage: set_args() and returns: str