code: def test_plugins():
      fig, ax = plt.subplots()
      ax.plot(
          np.arange(10),
          np.random.random(10),
          "--ok",
          alpha=0.3,
          zorder=10,
          lw=2,
      )
      plug = FakePlugin(fig)
      plugins.connect(fig, plug)
  
      for template_type in ["simple", "notebook", "general"]:
          html = fig_to_html(fig, template_type=template_type)
          assert plug.JAVASCRIPT in html
          assert plug.css_ in html
  
imports: import numpy
  import matplotlib.pyplot
  from ..None import fig_to_html, plugins
  from numpy.testing import assert_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_plugins() without return types