code: def draw_image(self, gc, x, y, im):
      bbox = gc.get_clip_rectangle()
  
      if bbox != None:
          l, b, w, h = bbox.bounds
          # rectangle = (int(l), self.height-int(b+h),
          #             int(w), int(h))
          # set clip rect?
  
      rows, cols = im.shape[:2]
  
      pixbuf = gtk.gdk.Pixbuf(
          gtk.gdk.COLORSPACE_RGB,
          has_alpha=True,
          bits_per_sample=8,
          width=cols,
          height=rows,
      )
  
      array = pixbuf_get_pixels_array(pixbuf)
      array[:, :, :] = im[::-1]
  
      gc = self.new_gc()
  
      y = self.height - y - rows
  
      try:  # new in 2.2
          # can use None instead of gc.gdkGC, if don't need clipping
          self.gdkDrawable.draw_pixbuf(
              gc.gdkGC,
              pixbuf,
              0,
              0,
              int(x),
              int(y),
              cols,
              rows,
              gdk.RGB_DITHER_NONE,
              0,
              0,
          )
      except AttributeError:
          # deprecated in 2.2
          pixbuf.render_to_drawable(
              self.gdkDrawable,
              gc.gdkGC,
              0,
              0,
              int(x),
              int(y),
              cols,
              rows,
              gdk.RGB_DITHER_NONE,
              0,
              0,
          )
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import warnings
  import gobject
  import gtk
  import pango
  import numpy
  import matplotlib
  from matplotlib import rcParams
  from matplotlib._pylab_helpers import Gcf
  from matplotlib.backend_bases import _Backend, FigureCanvasBase, FigureManagerBase, GraphicsContextBase, RendererBase
  from matplotlib.cbook import warn_deprecated
  from matplotlib.mathtext import MathTextParser
  from matplotlib.transforms import Affine2D
  from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array
label_desc: Use image node_id 5 for calling the RendererGDK obj's underlying member method code with example usage: obj.draw_image(gc, x, y, im) without return types