code: def emit(self, *args, **kwargs):
      try:
          self.__emitting += 1
          for handler in self.__handlers:
              handler(*args, **kwargs)
      finally:
          self.__emitting -= 1
          if not self.__emitting:
              self.__applyChanges()
  
imports: import abc
  import six
  from pyalgotrade import dispatchprio
label_desc: Use image node_id 7 for calling the Event obj's underlying member method code with example usage: obj.emit() without return types