code: def test_bbox_inches_tight_clipping():
      # tests bbox clipping on scatter points, and path clipping on a patch
      # to generate an appropriately tight bbox
      plt.scatter(np.arange(10), np.arange(10))
      ax = plt.gca()
      ax.set_xlim(0, 5)
      ax.set_ylim(0, 5)
  
      # make a massive rectangle and clip it with a path
      patch = mpatches.Rectangle(
          [-50, -50],
          100,
          100,
          transform=ax.transData,
          facecolor="blue",
          alpha=0.5,
      )
  
      path = mpath.Path.unit_regular_star(5).deepcopy()
      path.vertices *= 0.25
      patch.set_clip_path(path, transform=ax.transAxes)
      plt.gcf().artists.append(patch)
  
file_path: matplotlib/lib/matplotlib/tests/test_bbox_tight.py
imports: from io import BytesIO
  import numpy
  from matplotlib.testing.decorators import image_comparison
  import matplotlib.pyplot
  import matplotlib.path
  import matplotlib.patches
  from matplotlib.ticker import FuncFormatter
label_desc: Use image node_id 6 for calling a global function with example usage: test_bbox_inches_tight_clipping() without return types