code: def test_legend_dots():
      fig, ax = plt.subplots()
      ax.plot([1, 2, 3], label="label")
      ax.plot([2, 2, 2], "o", label="dots")
      ax.legend().set_visible(True)
      # legend draws 1 line and 1 marker
      # path around legend now has 13 vertices??
      _assert_output_equal(
          fake_renderer_output(fig, FullFakeRenderer),
          """
                           opening figure
                           opening axes
                           draw line with 3 points
                           draw 3 markers
                           opening legend
                           draw line with 2 points
                           draw text 'label' None
                           draw 1 markers
                           draw text 'dots' None
                           draw path with 13 vertices
                           closing legend
                           closing axes
                           closing figure
                           """,
      )
  
imports: import matplotlib
  import numpy
  import pytest
  from numpy.testing import assert_warns
  from packaging.version import Version
  from ..exporter import Exporter
  from ..renderers import FakeRenderer, FullFakeRenderer
  from .None import plt
label_desc: Use image node_id 12 for calling a global function with example usage: test_legend_dots() without return types