code: def test_query_metrics(self):
      q = self.isolated_query_patch(
          "run.hparams.batch_size == None and metric.context.is_training == True"
      )
  
      trace_count = 0
      for trc in self.repo.query_metrics(
          query=q, report_mode=QueryReportMode.DISABLED
      ):
          self.assertIsNone(trc.run["hparams"]["batch_size"])
          self.assertTrue(trc.context["is_training"])
          trace_count += 1
      self.assertEqual(20, trace_count)
  
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 1 for calling the TestQuery obj's underlying member method code with example usage: obj.test_query_metrics() without return types