code: def demo_images_side_by_side(ax):
      from mpl_toolkits.axes_grid1 import make_axes_locatable
  
      divider = make_axes_locatable(ax)
  
      Z, extent = get_demo_image()
      ax2 = divider.append_axes("right", size="100%", pad=0.05)
      fig1 = ax.get_figure()
      fig1.add_axes(ax2)
  
      ax.imshow(Z, extent=extent)
      ax2.imshow(Z, extent=extent)
      ax2.yaxis.set_tick_params(labelleft=False)
  
file_path: matplotlib/galleries/examples/axes_grid1/demo_axes_divider.py
imports: import matplotlib.pyplot
  from matplotlib import cbook
label_desc: Use image node_id 5 for calling a global function with example usage: demo_images_side_by_side(ax) without return types