code: def __getattr__(key):
      if key == "accept_in_vi_insert_mode":
          warnings.warn(
              "`accept_in_vi_insert_mode` is deprecated since IPython 8.12 and "
              "renamed to `accept_or_jump_to_end`. Please update your configuration "
              "accordingly",
              DeprecationWarning,
              stacklevel=2,
          )
          return _deprected_accept_in_vi_insert_mode
      raise AttributeError
  
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 19 for calling a global function with example usage: __getattr__(key) and returns: _deprected_accept_in_vi_insert_mode