code: def previousSibling(self) -> Optional[AbstractNode]:
          
          parent = self.parentNode
          if parent is None:
              return None
          return parent.childNodes.item(parent.childNodes.index(self) - 1)
docs: Return the previous sibling of this node.
  
          If there is no previous sibling, return ``None``.