code: def add_models_to_shell() -> dict[str, t.Any]:
      """Registered with :meth:`~flask.Flask.shell_context_processor` if
      ``add_models_to_shell`` is enabled. Adds the ``db`` instance and all model classes
      to ``flask shell``.
      """
      db = current_app.extensions["sqlalchemy"]
      out = {
          m.class_.__name__: m.class_
          for m in db.Model._sa_registry.mappers
      }
      out["db"] = db
      return out
  
label_desc: Use image node_id 1 for calling a global function with example usage: add_models_to_shell() and returns: out