code: def actor_from_request(datasette, request):
      async def inner():
          if request.args.get("_bot2"):
              result = await datasette.get_database().execute(
                  "select 1 + 1"
              )
              return {"id": "bot2", "1+1": result.first()[0]}
          else:
              return None
  
      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 5 for calling a global function with example usage: actor_from_request(datasette, request) and returns: inner, dict, None