code: def _deprected_accept_in_vi_insert_mode(event: KeyPressEvent):
      """Accept autosuggestion or jump to end of line.
  
      .. deprecated:: 8.12
          Use `accept_or_jump_to_end` instead.
      """
      return accept_or_jump_to_end(event)
  
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 3 for calling a global function with example usage: _deprected_accept_in_vi_insert_mode(event) and returns: accept_or_jump_to_end