code: def __init__(self, figure):
      super().__init__(figure=figure)
      self._draw_pending = False
      self._is_drawing = False
      # Keep track of the timers that are alive
      self._timers = set()
  
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 FigureCanvasMac object from inherited base classes: FigureCanvasAgg, _macosx, FigureCanvasBase with example: obj = FigureCanvasMac(figure)