code: def test_hbox_divider():
      arr1 = np.arange(20).reshape((4, 5))
      arr2 = np.arange(20).reshape((5, 4))
  
      fig, (ax1, ax2) = plt.subplots(1, 2)
      ax1.imshow(arr1)
      ax2.imshow(arr2)
  
      pad = 0.5  # inches.
      divider = HBoxDivider(
          fig,
          111,  # Position of combined axes.
          horizontal=[
              Size.AxesX(ax1),
              Size.Fixed(pad),
              Size.AxesX(ax2),
          ],
          vertical=[Size.AxesY(ax1), Size.Scaled(1), Size.AxesY(ax2)],
      )
      ax1.set_axes_locator(divider.new_locator(0))
      ax2.set_axes_locator(divider.new_locator(2))
  
      fig.canvas.draw()
      p1 = ax1.get_position()
      p2 = ax2.get_position()
      assert p1.height == p2.height
      assert p2.width / p1.width == pytest.approx((4 / 5) ** 2)
  
imports: from itertools import product
  import io
  import platform
  import matplotlib
  import matplotlib.pyplot
  import matplotlib.ticker
  from matplotlib import cbook
  from matplotlib.backend_bases import MouseEvent
  from matplotlib.colors import LogNorm
  from matplotlib.patches import Circle, Ellipse
  from matplotlib.transforms import Bbox, TransformedBbox
  from matplotlib.testing.decorators import check_figures_equal, image_comparison, remove_ticks_and_titles
  from mpl_toolkits.axes_grid1 import axes_size, host_subplot, make_axes_locatable, Grid, AxesGrid, ImageGrid
  from mpl_toolkits.axes_grid1.anchored_artists import AnchoredAuxTransformBox, AnchoredDrawingArea, AnchoredEllipse, AnchoredDirectionArrows, AnchoredSizeBar
  from mpl_toolkits.axes_grid1.axes_divider import Divider, HBoxDivider, make_axes_area_auto_adjustable, SubplotDivider, VBoxDivider
  from mpl_toolkits.axes_grid1.axes_rgb import RGBAxes
  from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes, mark_inset, inset_axes, BboxConnectorPatch, InsetPosition
  import mpl_toolkits.axes_grid1.mpl_axes
  import pytest
  import numpy
  from numpy.testing import assert_array_equal, assert_array_almost_equal
label_desc: Use image node_id 22 for calling a global function with example usage: test_hbox_divider() without return types