code: def log(id):
      log = app.extensions["log"][id:]
      return json.dumps(log)
  
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 5 for calling a global function with example usage: log(id) and returns: json