def remove_child(self, label):
ind = None<EOL>for i,c in enumerate(self.children):<EOL><INDENT>if c.label==label:<EOL><INDENT>ind = i<EOL><DEDENT><DEDENT>if ind is None:<EOL><INDENT>logging.warning('<STR_LIT>'.format(label))<EOL>return<EOL><DEDENT>self.children.pop(ind)<EOL>self._clear_all_leaves()<EOL>
Removes node by label