def pop_flash(self, queue='<STR_LIT:default>'):
flash_messages = self.get_internal_attribute('<STR_LIT>')<EOL>messages = flash_messages.pop(queue, None)<EOL>self.set_internal_attribute('<STR_LIT>', flash_messages)<EOL>return messages<EOL>
:rtype: list