code: def insertBefore(self, node: AbstractNode,
                       ref_node: AbstractNode) -> AbstractNode:
          
          return self._insert_before(node, ref_node)
docs: Insert a node just before the reference node.