code: def _get_toolbar(self, canvas):
      # must be inited after the window, drawingArea and figure
      # attrs are set
      if matplotlib.rcParams["toolbar"] == "toolbar2":
          toolbar = NavigationToolbar2GTKCairo(canvas, self.window)
      else:
          toolbar = None
      return toolbar
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import gtk
  from matplotlib import cbook
  from matplotlib.backends import backend_cairo
  from matplotlib.backends.backend_gtk import *
  from matplotlib.backends.backend_gtk import _BackendGTK
label_desc: Use image node_id 1 for calling the FigureManagerGTKCairo obj's underlying member method code with example usage: obj._get_toolbar(canvas) and returns: toolbar