code: def insert(self, anchor):
          
          self.prec = anchor.prec        # point to neighbors
          self.succ = anchor
          self.succ.prec = self          # make neighbors point to item
          self.prec.succ = self
docs: insert list item before anchor