def copy_thumbnail_figure(self):
ret = None<EOL>if self._thumbnail_figure is not None:<EOL><INDENT>if not isstring(self._thumbnail_figure):<EOL><INDENT>ret = self._thumbnail_figure<EOL><DEDENT>else:<EOL><INDENT>ret = osp.join(osp.dirname(self.outfile),<EOL>osp.basename(self._thumbnail_figure))<EOL>copyfile(self._thumbnail_figure, ret)<EOL>return ret<EOL><DEDENT><DEDENT>elif hasattr(self.nb.metadata, '<STR_LIT>'):<EOL><INDENT>if not isstring(self.nb.metadata.thumbnail_figure):<EOL><INDENT>ret = self.nb.metadata.thumbnail_figure<EOL><DEDENT>else:<EOL><INDENT>ret = osp.join(osp.dirname(self.outfile), '<STR_LIT>',<EOL>osp.basename(self.nb.metadata.thumbnail_figure))<EOL>copyfile(osp.join(osp.dirname(self.infile),<EOL>self.nb.metadata.thumbnail_figure),<EOL>ret)<EOL><DEDENT><DEDENT>return ret<EOL>
The integer of the thumbnail figure