def with_metaclass(meta, *bases):
<EOL>class metaclass(type):<EOL><INDENT>def __new__(cls, name, this_bases, d):<EOL><INDENT>return meta(name, bases, d)<EOL><DEDENT><DEDENT>return type.__new__(metaclass, '<STR_LIT>', (), {})<EOL>
Create a base class with a metaclass.