def tag_mp3(filename, **kwargs):
audiofile = eyed3.load(filename)<EOL>for key, arg in kwargs.items():<EOL><INDENT>if key == '<STR_LIT>':<EOL><INDENT>audiofile.tag.lyrics.set(arg)<EOL><DEDENT>else:<EOL><INDENT>setattr(audiofile.tag, key, arg)<EOL><DEDENT><DEDENT>audiofile.tag.save()<EOL>
Write the specified tags to an mp3 file.