code: def _create_app(
      dialog: AnyContainer, style: BaseStyle | None
  ) -> Application[Any]:
      # Key bindings.
      bindings = KeyBindings()
      bindings.add("tab")(focus_next)
      bindings.add("s-tab")(focus_previous)
  
      return Application(
          layout=Layout(dialog),
          key_bindings=merge_key_bindings(
              [load_key_bindings(), bindings]
          ),
          mouse_support=True,
          style=style,
          full_screen=True,
      )
  
imports: from __future__ import annotations
  import functools
  from asyncio import get_running_loop
  from typing import Any, Callable, Sequence, TypeVar
  from prompt_toolkit.application import Application
  from prompt_toolkit.application.current import get_app
  from prompt_toolkit.buffer import Buffer
  from prompt_toolkit.completion import Completer
  from prompt_toolkit.eventloop import run_in_executor_with_context
  from prompt_toolkit.filters import FilterOrBool
  from prompt_toolkit.formatted_text import AnyFormattedText
  from prompt_toolkit.key_binding.bindings.focus import focus_next, focus_previous
  from prompt_toolkit.key_binding.defaults import load_key_bindings
  from prompt_toolkit.key_binding.key_bindings import KeyBindings, merge_key_bindings
  from prompt_toolkit.layout import Layout
  from prompt_toolkit.layout.containers import AnyContainer, HSplit
  from prompt_toolkit.layout.dimension import Dimension
  from prompt_toolkit.styles import BaseStyle
  from prompt_toolkit.validation import Validator
  from prompt_toolkit.widgets import Box, Button, CheckboxList, Dialog, Label, ProgressBar, RadioList, TextArea, ValidationToolbar
label_desc: Use image node_id 8 for calling a global function with example usage: _create_app(dialog, style) and returns: Application