code: def prepare_jinja2_environment(env, datasette):
      async def select_times_three(s):
          db = datasette.get_database()
          return (await db.execute("select 3 * ?", [int(s)])).first()[0]
  
      async def inner():
          env.filters["select_times_three"] = select_times_three
  
      return inner
  
imports: import asyncio
  from datasette import hookimpl, Permission
  from datasette.facets import Facet
  from datasette import tracer
  from datasette.utils import path_with_added_args
  from datasette.utils.asgi import asgi_send_json, Response
  import base64
  import pint
  import json
label_desc: Use image node_id 7 for calling a global function with example usage: prepare_jinja2_environment(env, datasette) and returns: inner, unknown