code: def test_get_gridspec():
      # ahem, pretty trivial, but...
      fig, ax = plt.subplots()
      assert ax.get_subplotspec().get_gridspec() == ax.get_gridspec()
  
imports: import itertools
  import numpy
  import pytest
  from matplotlib.axes import Axes, SubplotBase
  import matplotlib.pyplot
  from matplotlib.testing.decorators import check_figures_equal, image_comparison
label_desc: Use image node_id 13 for calling a global function with example usage: test_get_gridspec() without return types