def insert(self, item, priority):
        """
        Insert item into the queue, with the given priority.
        """
        heappush(self.heap, HeapItem(item, priority))
Insert item into the queue, with the given priority.