code: def __init__(self, canvas, num):
      self._shown = False
      _macosx.FigureManager.__init__(self, canvas)
      icon_path = str(cbook._get_data_path("images/matplotlib.pdf"))
      _macosx.FigureManager.set_icon(icon_path)
      FigureManagerBase.__init__(self, canvas, num)
      self._set_window_mode(mpl.rcParams["macosx.window_mode"])
      if self.toolbar is not None:
          self.toolbar.update()
      if mpl.is_interactive():
          self.show()
          self.canvas.draw_idle()
  
imports: import os
  import matplotlib
  from matplotlib import _api, cbook
  from matplotlib._pylab_helpers import Gcf
  from .None import _macosx
  from .backend_agg import FigureCanvasAgg
  from matplotlib.backend_bases import _Backend, FigureCanvasBase, FigureManagerBase, NavigationToolbar2, ResizeEvent, TimerBase, _allow_interrupt
label_desc: Use image node_id 1 to create a new FigureManagerMac object from inherited base classes: _macosx, FigureManagerBase with example: obj = FigureManagerMac(canvas, num)