class_docstr: Tracking SQL queries in a code block.
  
  :param display_num: If True, displays the query number.
  :param display_time: If True, displays the query execution time.
  :param display_trace: If True, displays the simplified (one-line) stack trace
  :param display_sql: If True, displays the SQL statements
  :param display_parameters: If True, display SQL statement parameters
  :param print_fn: The function used to display the text. By default,``builtins.print``
class_docstr_tok: ["Tracking","SQL","queries","in","a","code","block",".",":","param","display_num",":","If","True",",","displays","the","query","number",".",":","param","display_time",":","If","True",",","displays","the","query","execution","time",".",":","param","display_trace",":","If","True",",","displays","the","simplified","(","one-line",")","stack","trace",":","param","display_sql",":","If","True",",","displays","the","SQL","statements",":","param","display_parameters",":","If","True",",","display","SQL","statement","parameters",":","param","print_fn",":","The","function","used","to","display","the","text",".","By","default",",","``","builtins.print","``"]
code: def __enter__(self):
      import airflow.settings
  
      event.listen(
          airflow.settings.engine,
          "before_cursor_execute",
          self.before_cursor_execute,
      )
      event.listen(
          airflow.settings.engine,
          "after_cursor_execute",
          self.after_cursor_execute,
      )
  
file_path: airflow/tests/test_utils/perf/perf_kit/sqlalchemy.py
imports: from __future__ import annotations
  import os
  import time
  import traceback
  from typing import Callable
  from sqlalchemy import event
label_desc: Use image node_id 4 for calling the TraceQueries obj's underlying member method code with example usage: obj.__enter__() without return types