class_docstr: A helper class to implement a renderer that switches between
  vector and raster drawing.  An example may be a PDF writer, where
  most things are drawn with PDF vector commands, but some very
  complex objects, such as quad meshes, are rasterised and then
  output as images.
code: def _set_current_renderer(self, renderer):
      self._renderer = renderer
  
      for method in self._methods:
          if hasattr(renderer, method):
              setattr(self, method, getattr(renderer, method))
      renderer.start_rasterizing = self.start_rasterizing
      renderer.stop_rasterizing = self.stop_rasterizing
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/backends/backend_mixed.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import numpy
  import six
  from matplotlib.backends.backend_agg import RendererAgg
  from matplotlib.tight_bbox import process_figure_for_rasterizing
label_desc: Use image node_id 2 for calling the MixedModeRenderer obj's underlying member method code with example usage: obj._set_current_renderer(renderer) without return types