code: def index():
      with pull_session(url="http://localhost:5006/") as session:
          # generate a script to load the customized session
          script = server_session(
              session_id=session.id, url="http://localhost:5006"
          )
          # use the script in the rendered page
      return render_template(
          "embed.html", script=script, template="Flask"
      )
  
imports: from __future__ import absolute_import
  import panel
  from bokeh.client import pull_session
  from bokeh.embed import server_session
  from flask import Flask, render_template
  from flask import send_from_directory
label_desc: Use image node_id 1 for calling a global function with example usage: index() and returns: render_template