code: def test_large_single_path_collection():
      buff = io.BytesIO()
  
      # Generates a too-large single path in a path collection that
      # would cause a segfault if the draw_markers optimization is
      # applied.
      f, ax = plt.subplots()
      collection = collections.PathCollection(
          [Path([[-10, 5], [10, 5], [10, -5], [-10, -5], [-10, 5]])]
      )
      ax.add_artist(collection)
      ax.set_xlim(10**-3, 1)
      plt.savefig(buff)
  
imports: import io
  import numpy
  from numpy.testing import assert_array_almost_equal
  from PIL import Image, TiffTags
  import pytest
  from matplotlib import collections, patheffects, pyplot, transforms, rcParams, rc_context
  from matplotlib.backends.backend_agg import RendererAgg
  from matplotlib.figure import Figure
  from matplotlib.image import imread
  from matplotlib.path import Path
  from matplotlib.testing.decorators import image_comparison
  from matplotlib.transforms import IdentityTransform
label_desc: Use image node_id 2 for calling a global function with example usage: test_large_single_path_collection() without return types