code: def canned_queries(datasette, database):
      async def inner():
          return {
              "from_async_hook": "select {}".format(
                  (
                      await datasette.get_database(database).execute(
                          "select 1 + 1"
                      )
                  ).first()[0]
              )
          }
  
      return inner
  
file_path: datasette/tests/plugins/my_plugin_2.py
imports: from datasette import hookimpl
  from datasette.utils.asgi import Response
  from functools import wraps
  import markupsafe
  import json
label_desc: Use image node_id 9 for calling a global function with example usage: canned_queries(datasette, database) and returns: inner, dict