code: def create_figure():
      """
      Creates a simple example figure.
      """
      fig = Figure()
      ax = fig.add_subplot()
      t = np.arange(0.0, 3.0, 0.01)
      s = np.sin(2 * np.pi * t)
      ax.plot(t, s)
      return fig
  
file_path: matplotlib/galleries/examples/user_interfaces/embedding_webagg_sgskip.py
imports: import argparse
  import io
  import json
  import mimetypes
  from pathlib import Path
  import signal
  import socket
  import tornado.httpserver
  import tornado.ioloop
  import tornado.web
  import tornado.websocket
  import numpy
  import matplotlib
  from matplotlib.backends.backend_webagg import FigureManagerWebAgg, new_figure_manager_given_figure
  from matplotlib.figure import Figure
label_desc: Use image node_id 1 for calling a global function with example usage: create_figure() and returns: fig