def add_child(self, child):
        # some basic checks to help to avoid infinite recursion
        assert child is not self
        assert self not in child.children
        if child not in self.children:
            self.children.append(child)
dataset/ETHPy150Open PyTables/PyTables/tables/scripts/pttree.py/PrettyTree.add_child/original