code: def test_make_compound_path_stops():
      zero = [0, 0]
      paths = 3 * [Path([zero, zero], [Path.MOVETO, Path.STOP])]
      compound_path = Path.make_compound_path(*paths)
      # the choice to not preserve the terminal STOP is arbitrary, but
      # documented, so we test that it is in fact respected here
      assert np.sum(compound_path.codes == Path.STOP) == 0
  
imports: import re
  import numpy
  from numpy.testing import assert_array_equal
  import pytest
  from matplotlib import patches
  from matplotlib.path import Path
  from matplotlib.patches import Polygon
  from matplotlib.testing.decorators import image_comparison
  import matplotlib.pyplot
  from matplotlib import transforms
  from matplotlib.backend_bases import MouseEvent
label_desc: Use image node_id 15 for calling a global function with example usage: test_make_compound_path_stops() without return types