code: def test_markers():
      fig, ax = plt.subplots()
      ax.plot(
          np.arange(10),
          np.random.random(10),
          "^k",
          alpha=0.3,
          zorder=10,
          mec="r",
          mew=2,
          c="b",
      )
      rep = fig_to_dict(fig)
      axrep = rep["axes"][0]
      markers = axrep["markers"][0]
  
      assert_equal(
          list(sorted(markers.keys())),
          [
              "alpha",
              "coordinates",
              "data",
              "edgecolor",
              "edgewidth",
              "facecolor",
              "id",
              "markerpath",
              "xindex",
              "yindex",
              "zorder",
          ],
      )
      assert_equal(markers["alpha"], 0.3)
      assert_equal(markers["zorder"], 10)
      assert_equal(markers["coordinates"], "data")
      assert_equal(markers["edgecolor"], "#FF0000")
      assert_equal(markers["edgewidth"], 2)
      assert_equal(markers["facecolor"], "#0000FF")
      assert_equal(
          markers["markerpath"][0],
          [[0.0, -3.0], [-3.0, 3.0], [3.0, 3.0]],
      )
      assert_equal(markers["markerpath"][1], ["M", "L", "L", "Z"])
  
file_path: mpld3/mpld3/tests/test_elements.py
imports: import numpy
  import matplotlib.pyplot
  from ..None import fig_to_dict, fig_to_html
  from numpy.testing import assert_equal
label_desc: Use image node_id 2 for calling a global function with example usage: test_markers() without return types