class_docstr: test AnalyzerResult factory
class_docstr_tok: ["test","AnalyzerResult","factory"]
code: def test_factory(self):
      time_mode_list = ["global", "event", "segment", "framewise"]
      data_mode_list = ["value", "label"]
  
      for time_mode in time_mode_list:
          for data_mode in data_mode_list:
              result = AnalyzerResult(data_mode, time_mode)
              self.assertEqual(result.data_mode, data_mode)
              self.assertEqual(result.time_mode, time_mode)
              self.assertEqual(
                  result.keys(),
                  [
                      "id_metadata",
                      "data_object",
                      "audio_metadata",
                      "parameters",
                  ],
              )
  
imports: from __future__ import division
  import unittest
  from unit_timeside import TestRunner
  from timeside.core.analyzer import AnalyzerResult
  import numpy
label_desc: Use image node_id 2 for calling the TestAnalyzerResult_factory obj's underlying member method code with example usage: obj.test_factory() without return types