code: def __init__(self, canvas):
      NavigationToolbar2.__init__(self, canvas)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import os
  from matplotlib._pylab_helpers import Gcf
  from matplotlib.backend_bases import _Backend, FigureCanvasBase, FigureManagerBase, NavigationToolbar2, TimerBase
  from matplotlib.figure import Figure
  from matplotlib import rcParams
  from matplotlib.widgets import SubplotTool
  import matplotlib
  from matplotlib.backends import _macosx
  from .backend_agg import FigureCanvasAgg
label_desc: Use image node_id 1 to create a new NavigationToolbar2Mac object from inherited base classes: _macosx, NavigationToolbar2 with example: obj = NavigationToolbar2Mac(canvas)