code: def test_path_clipping():
      fig = plt.figure(figsize=(6.0, 6.2))
  
      for i, xy in enumerate(
          [
              [(200, 200), (200, 350), (400, 350), (400, 200)],
              [(200, 200), (200, 350), (400, 350), (400, 100)],
              [(200, 100), (200, 350), (400, 350), (400, 100)],
              [(200, 100), (200, 415), (400, 350), (400, 100)],
              [(200, 100), (200, 415), (400, 415), (400, 100)],
              [(200, 415), (400, 415), (400, 100), (200, 100)],
              [(400, 415), (400, 100), (200, 100), (200, 415)],
          ]
      ):
          ax = fig.add_subplot(4, 2, i + 1)
          bbox = [0, 140, 640, 260]
          ax.set_xlim(bbox[0], bbox[0] + bbox[2])
          ax.set_ylim(bbox[1], bbox[1] + bbox[3])
          ax.add_patch(
              Polygon(
                  xy, facecolor="none", edgecolor="red", closed=True
              )
          )
  
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 12 for calling a global function with example usage: test_path_clipping() without return types