def __new__(cls, name, bases, attrs):
attrs['<STR_LIT:name>'] = attrs.pop('<STR_LIT:name>', None) or name<EOL>name_format = attrs.get('<STR_LIT>', None)<EOL>if name_format:<EOL><INDENT>attrs['<STR_LIT:name>'] = name_format.format(**attrs)<EOL><DEDENT>api_path_prefix_format = attrs.get('<STR_LIT>', None)<EOL>if attrs.get('<STR_LIT>', None) is not None:<EOL><INDENT>pass<EOL><DEDENT>elif api_path_prefix_format is not None:<EOL><INDENT>attrs['<STR_LIT>'] = api_path_prefix_format.format(**attrs)<EOL><DEDENT>return super(APIMeta, cls).__new__(cls, name, bases, attrs)<EOL>
Create a new APIMixin class.