code: def test_patheffect2():
      ax2 = plt.subplot()
      arr = np.arange(25).reshape((5, 5))
      ax2.imshow(arr, interpolation="nearest")
      cntr = ax2.contour(arr, colors="k")
      cntr.set(
          path_effects=[
              path_effects.withStroke(linewidth=3, foreground="w")
          ]
      )
  
      clbls = ax2.clabel(cntr, fmt="%2.0f", use_clabeltext=True)
      plt.setp(
          clbls,
          path_effects=[
              path_effects.withStroke(linewidth=3, foreground="w")
          ],
      )
  
file_path: matplotlib/lib/matplotlib/tests/test_patheffects.py
imports: import numpy
  from matplotlib.testing.decorators import image_comparison
  import matplotlib.pyplot
  import matplotlib.patheffects
  from matplotlib.path import Path
  import matplotlib.patches
label_desc: Use image node_id 2 for calling a global function with example usage: test_patheffect2() without return types