code: def create_plot():
      np.random.seed(1)
  
      x = np.linspace(0, 10, 100)
      y = np.sin(x)
      xdata = 10 * np.random.random(25)
      dy = 0.2 + 0.2 * np.random.random(xdata.shape)
      ydata = np.random.normal(np.sin(xdata), dy)
  
      fig, ax = plt.subplots()
      ax.plot(x, y, lw=2, alpha=0.5)
      ax.errorbar(
          xdata, ydata, dy, fmt="ok", ecolor="gray", label="errors"
      )
      ax.legend()
  
      return fig
  
imports: import matplotlib.pyplot
  import numpy
  import mpld3
label_desc: Use image node_id 1 for calling a global function with example usage: create_plot() and returns: fig