code: def test_tight_layout4():
      """Test tight_layout for subplot2grid."""
      ax1 = plt.subplot2grid((3, 3), (0, 0))
      ax2 = plt.subplot2grid((3, 3), (0, 1), colspan=2)
      ax3 = plt.subplot2grid((3, 3), (1, 0), colspan=2, rowspan=2)
      ax4 = plt.subplot2grid((3, 3), (1, 2), rowspan=2)
      example_plot(ax1)
      example_plot(ax2)
      example_plot(ax3)
      example_plot(ax4)
      plt.tight_layout()
  
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 5 for calling a global function with example usage: test_tight_layout4() without return types