code: def _get_isearch_tokens(cli):
      def before():
          if (
              cli.search_state.direction
              == IncrementalSearchDirection.BACKWARD
          ):
              text = "reverse-i-search"
          else:
              text = "i-search"
  
          return [(Token.Prompt.Search, "(%s)`" % text)]
  
      def text():
          return [
              (
                  Token.Prompt.Search.Text,
                  cli.buffers[SEARCH_BUFFER].text,
              )
          ]
  
      def after():
          return [(Token.Prompt.Search, "`: ")]
  
      return before() + text() + after()
  
file_path: catboost/contrib/python/prompt-toolkit/py2/prompt_toolkit/layout/prompt.py
imports: from __future__ import unicode_literals
  from six import text_type
  from prompt_toolkit.enums import IncrementalSearchDirection, SEARCH_BUFFER
  from prompt_toolkit.token import Token
  from .utils import token_list_len
  from .processors import Processor, Transformation
label_desc: Use image node_id 1 for calling a global function with example usage: _get_isearch_tokens(cli) and returns: unknown, list, list, list