class_docstr: The canvas the figure renders into.  Calls the draw and print fig
  methods, creates the renderers, etc...
  
  Attributes
  ----------
  figure : `matplotlib.figure.Figure`
      A high-level Figure instance
code: def print_to_buffer(self):
      FigureCanvasAgg.draw(self)
      renderer = self.get_renderer()
      original_dpi = renderer.dpi
      renderer.dpi = self.figure.dpi
      try:
          result = (
              renderer._renderer.buffer_rgba(),
              (int(renderer.width), int(renderer.height)),
          )
      finally:
          renderer.dpi = original_dpi
      return result
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import numpy
  from collections import OrderedDict
  from math import radians, cos, sin
  from matplotlib import cbook, rcParams, __version__
  from matplotlib.backend_bases import _Backend, FigureCanvasBase, FigureManagerBase, RendererBase, cursors
  from matplotlib.cbook import maxdict
  from matplotlib.figure import Figure
  from matplotlib.font_manager import findfont, get_font
  from matplotlib.ft2font import LOAD_FORCE_AUTOHINT, LOAD_NO_HINTING, LOAD_DEFAULT, LOAD_NO_AUTOHINT
  from matplotlib.mathtext import MathTextParser
  from matplotlib.path import Path
  from matplotlib.transforms import Bbox, BboxBase
  from matplotlib import colors
  from matplotlib.backends._backend_agg import RendererAgg
  from matplotlib import _png
label_desc: Use image node_id 10 for calling the FigureCanvasAgg obj's underlying member method code with example usage: obj.print_to_buffer() and returns: result