code: def replaceChild(self, new_child: AbstractNode,
                       old_child: AbstractNode) -> AbstractNode:
          
          return self._replace_child(new_child, old_child)
docs: Replace an old child with new child.