code: def test_badsubplotgrid():
      # test that we get warning for mismatched subplot grids, not than an error
      plt.subplot2grid((4, 5), (0, 0))
      # this is the bad entry:
      plt.subplot2grid((5, 5), (0, 3), colspan=3, rowspan=5)
      with pytest.warns(UserWarning):
          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 18 for calling a global function with example usage: test_badsubplotgrid() without return types