def vary_name(name: Text):
snake = re.match(r'<STR_LIT>', name)<EOL>if not snake:<EOL><INDENT>fail('<STR_LIT>')<EOL><DEDENT>camel = [x[<NUM_LIT:0>].upper() + x[<NUM_LIT:1>:] for x in name.split('<STR_LIT:_>')]<EOL>return {<EOL>'<STR_LIT>': name,<EOL>'<STR_LIT>': '<STR_LIT>'.join(camel),<EOL>'<STR_LIT>': '<STR_LIT:U+0020>'.join(camel),<EOL>}<EOL>
Validates the name and creates variations