code: def asgi_wrapper():
      def wrap(app):
          async def maybe_set_actor_in_scope(scope, receive, send):
              if b"_actor_in_scope" in scope.get("query_string", b""):
                  scope = dict(scope, actor={"id": "from-scope"})
                  print(scope)
              await app(scope, receive, send)
  
          return maybe_set_actor_in_scope
  
      return wrap
  
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 10 for calling a global function with example usage: asgi_wrapper() and returns: wrap, maybe_set_actor_in_scope