code: def create_plot():
      fig, ax = plt.subplots()
      ax.grid(color="gray")
  
      x = np.array(random_data)
      ax.hist(x, 30, fc="blue", alpha=0.5)
  
      ax.xaxis.set_major_locator(plt.NullLocator())
  
      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