code: def test_query_metrics(self, query_key, query):
      query_execution_time = query_metrics(query)
      test_name = f"test_query_metrics_{query_key}"
      baseline = get_baseline(test_name)
      if baseline:
          self.assertInRange(query_execution_time, baseline)
      else:
          write_baseline(test_name, query_execution_time)
  
file_path: aim/performance_tests/sdk/test_query.py
imports: from parameterized import parameterized
  from performance_tests.base import SDKTestBase
  from performance_tests.utils import get_baseline, write_baseline
  from performance_tests.sdk.queries import queries
  from performance_tests.sdk.utils import query_runs, query_metrics
label_desc: Use image node_id 2 for calling the TestQueryExecutionTime obj's underlying member method code with example usage: obj.test_query_metrics(query_key, query) without return types