code: def test_extents_with_ignored_codes(ignored_code):
      # Check that STOP and CLOSEPOLY points are ignored when calculating extents
      # of a path with only straight lines
      path = Path(
          [[0, 0], [1, 1], [2, 2]],
          [Path.MOVETO, Path.MOVETO, ignored_code],
      )
      assert np.all(path.get_extents().extents == (0.0, 0.0, 1.0, 1.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 8 for calling a global function with example usage: test_extents_with_ignored_codes(ignored_code) without return types