code: def __init__(self, emitter):
      self._events = []
      self.emitter = emitter
      emitter.connect(self.callback)
  
file_path: vispy/vispy/scene/tests/test_node.py
imports: from vispy.scene.node import Node
  from vispy.testing import requires_application, TestingCanvas, run_tests_if_main, raises
  from vispy.visuals.transforms import STTransform
  import numpy
label_desc: Use image node_id 1 to create a new EventCheck object from inherited base classes: object with example: obj = EventCheck(emitter)