code: def test_hidden_axes():
      # test that if we make an Axes not visible that constrained_layout
      # still works.  Note the axes still takes space in the layout
      # (as does a gridspec slot that is empty)
      fig, axs = plt.subplots(2, 2, layout="constrained")
      axs[0, 1].set_visible(False)
      fig.draw_without_rendering()
      extents1 = np.copy(axs[0, 0].get_position().extents)
  
      np.testing.assert_allclose(
          extents1, [0.045552, 0.543288, 0.47819, 0.982638], rtol=1e-5
      )
  
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 29 for calling a global function with example usage: test_hidden_axes() without return types