code: def test_suptitle():
      fig, ax = plt.subplots(tight_layout=True)
      st = fig.suptitle("foo")
      t = ax.set_title("bar")
      fig.canvas.draw()
      assert st.get_window_extent().y0 > t.get_window_extent().y1
  
imports: import warnings
  import numpy
  from numpy.testing import assert_array_equal
  import pytest
  import matplotlib
  from matplotlib.testing.decorators import image_comparison
  import matplotlib.pyplot
  from matplotlib.offsetbox import AnchoredOffsetbox, DrawingArea
  from matplotlib.patches import Rectangle
label_desc: Use image node_id 20 for calling a global function with example usage: test_suptitle() without return types