code: def shell_command() -> None:
      """Run an interactive Python shell in the context of a given
      Flask application.  The application will populate the default
      namespace of this shell according to its configuration.
  
      This is useful for executing small snippets of management code
      without having to manually configure the application.
      """
      import code
  
      banner = (
          f"Python {sys.version} on {sys.platform}\n"
          f"App: {current_app.import_name}\n"
          f"Instance: {current_app.instance_path}"
      )
      ctx: dict = {}
  
      # Support the regular Python interpreter startup script if someone
      # is using it.
      startup = os.environ.get("PYTHONSTARTUP")
      if startup and os.path.isfile(startup):
          with open(startup) as f:
              eval(compile(f.read(), startup, "exec"), ctx)
  
      ctx.update(current_app.make_shell_context())
  
      # Site, customize, or startup script can set a hook to call when
      # entering interactive mode. The default one sets up readline with
      # tab and history completion.
      interactive_hook = getattr(sys, "__interactivehook__", None)
  
      if interactive_hook is not None:
          try:
              import readline
              from rlcompleter import Completer
          except ImportError:
              pass
          else:
              # rlcompleter uses __main__.__dict__ by default, which is
              # flask.__main__. Use the shell context instead.
              readline.set_completer(Completer(ctx).complete)
  
          interactive_hook()
  
      code.interact(banner=banner, local=ctx)
  
imports: from __future__ import annotations
  import ast
  import importlib.metadata
  import inspect
  import os
  import platform
  import re
  import sys
  import traceback
  import typing
  from functools import update_wrapper
  from operator import itemgetter
  import click
  from click.core import ParameterSource
  from werkzeug import run_simple
  from werkzeug.serving import is_running_from_reloader
  from werkzeug.utils import import_string
  from .globals import current_app
  from .helpers import get_debug_flag
  from .helpers import get_load_dotenv
label_desc: Use image node_id 16 for calling a global function with example usage: shell_command() without return types