code: def handle_event(self, event):
      e_type = event["type"]
      handler = getattr(
          self, "handle_{0}".format(e_type), self.handle_unknown_event
      )
      return handler(event)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import datetime
  import io
  import json
  import os
  import warnings
  import numpy
  import tornado
  from matplotlib.backends import backend_agg
  from matplotlib.backend_bases import _Backend
  from matplotlib import backend_bases
  from matplotlib import _png
label_desc: Use image node_id 8 for calling the FigureCanvasWebAggCore obj's underlying member method code with example usage: obj.handle_event(event) and returns: handler