code: def actor_from_request(datasette, request):
      if request.args.get("_bot"):
          return {"id": "bot"}
      else:
          return None
  
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 9 for calling a global function with example usage: actor_from_request(datasette, request) and returns: dict, None