code: def testArray2DAggregation(self):
      p = Pool()
      p.add("foo.bar", array([[0, 1], [2, 3]]))
      p.add("foo.bar", array([[1, 2], [3, 4]]))
      p.add("foo.bar", array([[2, 3], [4, 5]]))
  
      defaultStats = [
          "mean",
          "min",
          "max",
          "var",
          "dmean",
          "dvar",
          "dmean2",
          "dvar2",
      ]
      # median, stdev, cov, and icov are not implemented, and therefore not tested
  
      results = PoolAggregator(defaultStats=defaultStats)(p)
  
      # mat is [[[0,1],[2,3]],[[1,2],[3,4]],[[2,3],[4,5]]]
      self.assertEqualMatrix(results["foo.bar.min"], [[0, 1], [2, 3]])
      self.assertEqualMatrix(results["foo.bar.max"], [[2, 3], [4, 5]])
      self.assertEqualMatrix(results["foo.bar.mean"], [[1, 2], [3, 4]])
      self.assertAlmostEqualMatrix(
          results["foo.bar.var"],
          [[2.0 / 3.0, 2.0 / 3.0], [2.0 / 3.0, 2.0 / 3.0]],
      )
      self.assertEqualMatrix(results["foo.bar.dmean"], [[1, 1], [1, 1]])
      self.assertEqualMatrix(results["foo.bar.dvar"], [[0, 0], [0, 0]])
      self.assertEqualMatrix(
          results["foo.bar.dmean2"], [[0, 0], [0, 0]]
      )
      self.assertEqualMatrix(results["foo.bar.dvar2"], [[0, 0], [0, 0]])
  
file_path: essentia/test/src/unittests/stats/test_poolaggregator.py
imports: from essentia_test import *
label_desc: Use image node_id 14 for calling the TestPoolAggregator obj's underlying member method code with example usage: obj.testArray2DAggregation() without return types