code: def test_hatching():
      fig, ax = plt.subplots(1, 1)
  
      # Default hatch color.
      rect1 = mpatches.Rectangle((0, 0), 3, 4, hatch="/")
      ax.add_patch(rect1)
  
      rect2 = mcollections.RegularPolyCollection(
          4,
          sizes=[16000],
          offsets=[(1.5, 6.5)],
          offset_transform=ax.transData,
          hatch="/",
      )
      ax.add_collection(rect2)
  
      # Ensure edge color is not applied to hatching.
      rect3 = mpatches.Rectangle(
          (4, 0), 3, 4, hatch="/", edgecolor="C1"
      )
      ax.add_patch(rect3)
  
      rect4 = mcollections.RegularPolyCollection(
          4,
          sizes=[16000],
          offsets=[(5.5, 6.5)],
          offset_transform=ax.transData,
          hatch="/",
          edgecolor="C1",
      )
      ax.add_collection(rect4)
  
      ax.set_xlim(0, 7)
      ax.set_ylim(0, 9)
  
imports: import io
  from itertools import chain
  import numpy
  import pytest
  import matplotlib.colors
  import matplotlib.pyplot
  import matplotlib.patches
  import matplotlib.lines
  import matplotlib.path
  import matplotlib.transforms
  import matplotlib.collections
  import matplotlib.artist
  import matplotlib.backend_bases
  import matplotlib
  from matplotlib.testing.decorators import check_figures_equal, image_comparison
label_desc: Use image node_id 6 for calling a global function with example usage: test_hatching() without return types