docs: def contains_element(self, element):
          """Determines if an element is contained in the priority queue."
  
          :returns: bool -- true iff element is in the priority queue.
  
          """
          return (element in self.element_finder) and \
              (self.element_finder[element][1] != self.INVALID)