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