code: def wrap_inner(node, tag):
      
      children = list(node.childNodes)
      wrap_node = node.ownerDocument.createElement(tag)
      for c in children:
          wrap_node.appendChild(c)
      node.appendChild(wrap_node)
docs: Wrap the given tag around the contents of a node.