code: def draw(self, drawDC=None):
      size = self.figure.bbox.size.astype(int)
      surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, *size)
      self._renderer.set_context(cairo.Context(surface))
      self._renderer.dpi = self.figure.dpi
      self.figure.draw(self._renderer)
      self.bitmap = wxcairo.BitmapFromImageSurface(surface)
      self._isDrawn = True
      self.gui_repaint(drawDC=drawDC)
  
file_path: catboost/contrib/python/matplotlib/py3/matplotlib/backends/backend_wxcairo.py
imports: import wx.lib.wxcairo
  from .backend_cairo import cairo, FigureCanvasCairo
  from .backend_wx import _BackendWx, _FigureCanvasWxBase
  from .backend_wx import NavigationToolbar2Wx
label_desc: Use image node_id 1 for calling the FigureCanvasWxCairo obj's underlying member method code with example usage: obj.draw(drawDC) without return types