def schedule_snapshot(self, format):
bot = self.bot<EOL>canvas = self.bot.canvas<EOL>script = bot._namespace['<STR_LIT>']<EOL>if script:<EOL><INDENT>filename = os.path.splitext(script)[<NUM_LIT:0>] + '<STR_LIT:.>' + format<EOL><DEDENT>else:<EOL><INDENT>filename = '<STR_LIT>' + format<EOL><DEDENT>f = canvas.output_closure(filename, self.bot._frame)<EOL>self.scheduled_snapshots.append(f)<EOL>
Tell the canvas to perform a snapshot when it's finished rendering
:param format:
:return: