code: def testProbability(self):
      if not has_gaia:
          return
  
      testfiles = listFiles()
      transfo, gt = loadTestData("probability")
  
      for f in testfiles:
          predicted = transfo(YamlInput(filename=f)())
          self.assertEquals(
              predicted["genre.value"], gt[os.path.split(f)[-1][:-4]]
          )
          classes = [
              d
              for d in predicted.descriptorNames()
              if d.startswith("genre.all")
          ]
          probs = [predicted[d] for d in classes]
          self.assertEquals(predicted["genre.probability"], max(probs))
  
file_path: essentia/test/src/unittests/highlevel/test_gaiatransform.py
imports: from essentia_test import *
  import os, os.path
  import yaml
label_desc: Use image node_id 5 for calling the TestGaiaTransform obj's underlying member method code with example usage: obj.testProbability() without return types