docs: def pop_flash(self, queue='default'):
          """
          :rtype: list
          """
          flash_messages = self.get_internal_attribute('flash_messages')
          messages = flash_messages.pop(queue, None)
          self.set_internal_attribute('flash_messages', flash_messages)
          return messages