code: def test_suplabels():
      fig, ax = plt.subplots(layout="constrained")
      fig.draw_without_rendering()
      pos0 = ax.get_tightbbox(fig.canvas.get_renderer())
      fig.supxlabel("Boo")
      fig.supylabel("Booy")
      fig.draw_without_rendering()
      pos = ax.get_tightbbox(fig.canvas.get_renderer())
      assert pos.y0 > pos0.y0 + 10.0
      assert pos.x0 > pos0.x0 + 10.0
  
      fig, ax = plt.subplots(layout="constrained")
      fig.draw_without_rendering()
      pos0 = ax.get_tightbbox(fig.canvas.get_renderer())
      # check that specifying x (y) doesn't ruin the layout
      fig.supxlabel("Boo", x=0.5)
      fig.supylabel("Boo", y=0.5)
      fig.draw_without_rendering()
      pos = ax.get_tightbbox(fig.canvas.get_renderer())
      assert pos.y0 > pos0.y0 + 10.0
      assert pos.x0 > pos0.x0 + 10.0
  
imports: import gc
  import numpy
  import pytest
  import matplotlib
  from matplotlib.testing.decorators import image_comparison
  import matplotlib.pyplot
  import matplotlib.transforms
  from matplotlib import gridspec, ticker
label_desc: Use image node_id 37 for calling a global function with example usage: test_suplabels() without return types