code: def test_query_raise_syntax_error(self):
      q = self.isolated_query_patch(
          'run.hash == "x" && metric.name == "y"'
      )
      with self.assertRaises(SyntaxError):
          next(
              iter(
                  self.repo.query_metrics(
                      q, report_mode=QueryReportMode.DISABLED
                  )
              )
          )
  
      with self.assertRaises(SyntaxError):
          next(
              iter(
                  self.repo.query_runs(
                      q, report_mode=QueryReportMode.DISABLED
                  )
              )
          )
  
imports: from parameterized import parameterized
  from tests.base import PrefilledDataTestBase
  from tests.utils import full_class_name
  from aim.sdk.types import QueryReportMode
  from aim.storage.query import syntax_error_check
label_desc: Use image node_id 8 for calling the TestQuery obj's underlying member method code with example usage: obj.test_query_raise_syntax_error() without return types