class_docstr: EventEmitter subclass used to allow deprecated events to be used with a
  warning message.
class_docstr_tok: ["EventEmitter","subclass","used","to","allow","deprecated","events","to","be","used","with","a","warning","message","."]
code: def connect(self, cb, *args, **kwargs):
      self._warn(cb)
      return EventEmitter.connect(self, cb, *args, **kwargs)
  
imports: from __future__ import division
  from collections import OrderedDict
  import inspect
  import traceback
  import weakref
  from .logs import logger, _handle_exception
label_desc: Use image node_id 2 for calling the WarningEmitter obj's underlying member method code with example usage: obj.connect(cb) and returns: EventEmitter