def _check_metaclasses(self, node):
consumed = []  <EOL>for child_node in node.get_children():<EOL><INDENT>if isinstance(child_node, astroid.ClassDef):<EOL><INDENT>consumed.extend(self._check_classdef_metaclasses(child_node, node))<EOL><DEDENT><DEDENT>for scope_locals, name in consumed:<EOL><INDENT>scope_locals.pop(name, None)<EOL><DEDENT>
Update consumption analysis for metaclasses.