class_docstr: A subclass of AutoSuggestFromHistory that allow navigation to next/previous
  suggestion from history. To do so it remembers the current position, but it
  state need to carefully be cleared on the right events.
class_docstr_tok: ["A","subclass","of","AutoSuggestFromHistory","that","allow","navigation","to","next\/previous","suggestion","from","history",".","To","do","so","it","remembers","the","current","position",",","but","it","state","need","to","carefully","be","cleared","on","the","right","events","."]
code: def _dismiss(self, buffer, *args, **kwargs):
      buffer.suggestion = None
  
imports: import re
  import tokenize
  from io import StringIO
  from typing import Callable, List, Optional, Union, Generator, Tuple
  import warnings
  from prompt_toolkit.buffer import Buffer
  from prompt_toolkit.key_binding import KeyPressEvent
  from prompt_toolkit.key_binding.bindings import named_commands
  from prompt_toolkit.auto_suggest import AutoSuggestFromHistory, Suggestion
  from prompt_toolkit.document import Document
  from prompt_toolkit.history import History
  from prompt_toolkit.shortcuts import PromptSession
  from prompt_toolkit.layout.processors import Processor, Transformation, TransformationInput
  from IPython.core.getipython import get_ipython
  from IPython.utils.tokenutil import generate_tokens
  from .filters import pass_through
label_desc: Use image node_id 6 for calling the NavigableAutoSuggestFromHistory obj's underlying member method code with example usage: obj._dismiss(buffer) without return types