<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def imshow(h, axes=None, colorbar=False, **kwargs):
 """ Draw a matplotlib imshow plot from a 2D ROOT histogram. Parameters h : Hist2D A rootpy Hist2D axes : matplotlib Axes instance, optional (default=None) The axes to plot on. If None then use the global current axes. colorbar : Boolean, optional (default=False) If True, include a colorbar in the produced plot kwargs : additional keyword arguments, optional Additional keyword arguments are passed directly to matplotlib's imshow function. Returns ------- Returns the value from matplotlib's imshow function. """

    kwargs.setdefault('aspect', 'auto')

    if axes is None:
        axes = plt.gca()
    z = np.array(h.z()).T

    axis_image= axes.imshow(
        z,
        extent=[
            h.xedges(1), h.xedges(h.nbins(0) + 1),
            h.yedges(1), h.yedges(h.nbins(1) + 1)],
        interpolation='nearest',
        origin='lower',
        **kwargs)
    if colorbar:
        plt.colorbar(axis_image, ax=axes)
    return axis_image