code: def test_constrained_layout23():
      """
      Comment in #11035: suptitle used to cause an exception when
      reusing a figure w/ CL with ``clear=True``.
      """
  
      for i in range(2):
          fig = plt.figure(layout="constrained", clear=True, num="123")
          gs = fig.add_gridspec(1, 2)
          sub = gs[0].subgridspec(2, 2)
          fig.suptitle(f"Suptitle{i}")
  
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 27 for calling a global function with example usage: test_constrained_layout23() without return types