def generate(self, text):
sizes = current_app.config['<STR_LIT>']<EOL>path = current_app.config['<STR_LIT>']<EOL>suffix = {sizes[<NUM_LIT:0>]: '<STR_LIT:s>', sizes[<NUM_LIT:1>]: '<STR_LIT:m>', sizes[<NUM_LIT:2>]: '<STR_LIT:l>'}<EOL>for size in sizes:<EOL><INDENT>image_byte_array = self.get_image(<EOL>string=str(text),<EOL>width=int(size),<EOL>height=int(size),<EOL>pad=int(size * <NUM_LIT:0.1>))<EOL>self.save(image_byte_array, save_location=os.path.join(path, '<STR_LIT>' % (text, suffix[size])))<EOL><DEDENT>return [text + '<STR_LIT>', text + '<STR_LIT>', text + '<STR_LIT>']<EOL>
Generate and save avatars, return a list of file name: [filename_s, filename_m, filename_l].

        :param text: The text used to generate image.