class_docstr: test AnalyzerResult hdf5 serialize 
code: def tearDown(self):
      if isinstance(self.result, AnalyzerResult):
          results = AnalyzerResultContainer([self.result])
      elif isinstance(self.result, AnalyzerResultContainer):
          results = self.result
      else:
          raise (TypeError, "Wrong type for self.result")
  
      import tempfile
  
      h5_file = tempfile.NamedTemporaryFile(suffix=".h5", delete=True)
      results.to_hdf5(h5_file.name)
  
      from_results = AnalyzerResultContainer()
      from_results.from_hdf5(h5_file.name)
  
      if verbose:
          print("%15s" % "from hdf5:", from_results)
      self.assertEqual(results, from_results)
      h5_file.close()
  
imports: import unittest
  from unit_timeside import TestRunner
  from timeside.core.analyzer import AnalyzerResult, AnalyzerResultContainer
  from timeside.core import __version__
  import numpy
  from math import pi
  from timeside.core.analyzer import numpy_data_types
label_desc: Use image node_id 1 for calling the TestAnalyzerResultHdf5 obj's underlying member method code with example usage: obj.tearDown() without return types