code: def get_recorded_queries() -> list[_QueryInfo]:
      """Get the list of recorded query information for the current session. Queries are
      recorded if the config :data:`.SQLALCHEMY_RECORD_QUERIES` is enabled.
  
      Each query info object has the following attributes:
  
      ``statement``
          The string of SQL generated by SQLAlchemy with parameter placeholders.
      ``parameters``
          The parameters sent with the SQL statement.
      ``start_time`` / ``end_time``
          Timing info about when the query started execution and when the results where
          returned. Accuracy and value depends on the operating system.
      ``duration``
          The time the query took in seconds.
      ``location``
          A string description of where in your application code the query was executed.
          This may not be possible to calculate, and the format is not stable.
  
      .. versionchanged:: 3.0
          Renamed from ``get_debug_queries``.
  
      .. versionchanged:: 3.0
          The info object is a dataclass instead of a tuple.
  
      .. versionchanged:: 3.0
          The info object attribute ``context`` is renamed to ``location``.
  
      .. versionchanged:: 3.0
          Not enabled automatically in debug or testing mode.
      """
      return g.get("_sqlalchemy_queries", [])
  
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 1 for calling a global function with example usage: get_recorded_queries() and returns: g