def build_class(name, basenames=(), doc=None):
node = nodes.ClassDef(name, doc)<EOL>for base in basenames:<EOL><INDENT>basenode = nodes.Name()<EOL>basenode.name = base<EOL>node.bases.append(basenode)<EOL>basenode.parent = node<EOL><DEDENT>return node<EOL>
create and initialize an astroid ClassDef node