code: def index():
      args = app.extensions["args"]
      return render_template(
          "gui.html",
          targets=app.extensions["targets"],
          cores_label="Nodes" if args["cluster"] else "Cores",
          resources=app.extensions["resources"],
          snakefilepath=app.extensions["snakefilepath"],
          version=__version__,
          node_width=15,
          node_padding=10,
      )
  
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 3 for calling a global function with example usage: index() and returns: render_template