def print_status(self):
s = []<EOL>s.append('<STR_LIT>')<EOL>for stm_id in Driver._stms_by_id:<EOL><INDENT>stm = Driver._stms_by_id[stm_id]<EOL>s.append('<STR_LIT>'.format(stm.id, stm.state))<EOL><DEDENT>s.append('<STR_LIT>')<EOL>for event in self._event_queue.queue:<EOL><INDENT>if event is not None:<EOL><INDENT>s.append('<STR_LIT>'.format(<EOL>event['<STR_LIT:id>'], event['<STR_LIT>'].id,<EOL>event['<STR_LIT:args>'], event['<STR_LIT>']))<EOL><DEDENT><DEDENT>s.append('<STR_LIT>'.format(len(self._timer_queue)))<EOL>for timer in self._timer_queue:<EOL><INDENT>s.append('<STR_LIT>'.format(<EOL>timer['<STR_LIT:id>'], timer['<STR_LIT>'].id, timer['<STR_LIT>']))<EOL><DEDENT>s.append('<STR_LIT>')<EOL>return '<STR_LIT>'.join(s)<EOL>
Provide a snapshot of the current status.