code: def test_invalid_query(self):
      q = self.isolated_query_patch(
          'invalid_varialble.get("hparams", "batch_size") == None'
      )
      with self.assertRaises(Exception):
          next(
              iter(
                  self.repo.query_metrics(
                      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 7 for calling the TestQuery obj's underlying member method code with example usage: obj.test_invalid_query() without return types