code: def testAggregationMethods(self):
      # Load an audio file without a clear rhythmic sense as we want
      # spurious local estimations for this test.
      # The goal is to assess if the global estimation is correctly
      # obtained from the local ones.
      filename = join(
          testdata.audio_dir, "recorded", "spaceambient.wav"
      )
      model = join(testdata.models_dir, "tempocnn", "deeptemp_k16.pb")
  
      audio = MonoLoader(filename=filename, sampleRate=11025)()
  
      global_tempo, local_tempo, _ = TempoCNN(
          graphFilename=model, aggregationMethod="majority"
      )(audio)
      self.assertEqual(
          global_tempo,
          numpy.argmax(numpy.bincount(local_tempo.astype("int"))),
      )
  
      global_tempo, local_tempo, _ = TempoCNN(
          graphFilename=model, aggregationMethod="mean"
      )(audio)
      self.assertEqual(global_tempo, numpy.mean(local_tempo))
      global_tempo, local_tempo, _ = TempoCNN(
          graphFilename=model, aggregationMethod="median"
      )(audio)
      self.assertEqual(global_tempo, numpy.median(local_tempo))
  
file_path: essentia/test/src/unittests/rhythm/test_tempocnn.py
imports: from essentia_test import *
label_desc: Use image node_id 8 for calling the TestTempoCNN obj's underlying member method code with example usage: obj.testAggregationMethods() without return types