code: def testAggregateExceptions(self):
      # default aggregates
      defaultStats = ["mean", "var", "min", "max"]
  
      # and the exceptions
      exceptions = {"foo.bar": ["min"]}
  
      # prepare a pool
      p = Pool({"foo.bar": [1.1, 2.2, 3.3], "bar.foo": [-6.9, 6.9]})
  
      # configure and aggregate
      results = PoolAggregator(
          defaultStats=defaultStats, exceptions=exceptions
      )(p)
  
      # verify that mean, var, min, max were computed for (bar, foo), but only
      # min was computed for (foo, bar)
      expectedKeys = [
          "foo.bar.min",
          "bar.foo.min",
          "bar.foo.max",
          "bar.foo.mean",
          "bar.foo.var",
      ]
      resultingKeys = results.descriptorNames()
  
      self.assertEqualVector(
          sorted(resultingKeys), sorted(expectedKeys)
      )
  
      self.assertAlmostEqual(results["foo.bar.min"], 1.1)
  
      self.assertAlmostEqual(results["bar.foo.min"], -6.9)
      self.assertAlmostEqual(results["bar.foo.max"], 6.9)
      self.assertAlmostEqual(results["bar.foo.mean"], 0.0)
      self.assertAlmostEqual(results["bar.foo.var"], 47.61)
  
file_path: essentia/test/src/unittests/stats/test_poolaggregator.py
imports: from essentia_test import *
label_desc: Use image node_id 2 for calling the TestPoolAggregator obj's underlying member method code with example usage: obj.testAggregateExceptions() without return types