code: def _listen(engine: sa.engine.Engine) -> None:
      sa_event.listen(
          engine, "before_cursor_execute", _record_start, named=True
      )
      sa_event.listen(
          engine, "after_cursor_execute", _record_end, named=True
      )
  
file_path: flask-sqlalchemy/src/flask_sqlalchemy/record_queries.py
imports: from __future__ import annotations
  import dataclasses
  import inspect
  import typing
  from time import perf_counter
  import sqlalchemy
  import sqlalchemy.event
  from flask import current_app
  from flask import g
  from flask import has_app_context
label_desc: Use image node_id 2 for calling a global function with example usage: _listen(engine) without return types