def disallow(nodes):
def disallowed(cls):<EOL><INDENT>cls.unsupported_nodes = ()<EOL>for node in nodes:<EOL><INDENT>new_method = _node_not_implemented(node, cls)<EOL>name = '<STR_LIT>'.format(node=node)<EOL>cls.unsupported_nodes += (name,)<EOL>setattr(cls, name, new_method)<EOL><DEDENT>return cls<EOL><DEDENT>return disallowed<EOL>
Decorator to disallow certain nodes from parsing. Raises a
    NotImplementedError instead.

    Returns
    -------
    disallowed : callable