code: def get_task_id():
      current = trace_task_id.get(None)
      if current is not None:
          return current
      try:
          loop = asyncio.get_event_loop()
      except RuntimeError:
          return None
      return id(asyncio.current_task(loop=loop))
  
file_path: datasette/datasette/tracer.py
imports: import asyncio
  from contextlib import contextmanager
  from contextvars import ContextVar
  from markupsafe import escape
  import time
  import json
  import traceback
label_desc: Use image node_id 1 for calling a global function with example usage: get_task_id() and returns: id, current, None