def check_node(self):
    if self.check_event(StreamStartEvent):
        self.get_event()
    return (not self.check_event(StreamEndEvent))
def check_node(self):
    if self.check_event(StreamStartEvent):
        self.get_event()
    return (not self.check_event(StreamEndEvent))