code: def testAlternating(self):
      self.assertEqual(TCToTotal()([1, -1, 1, -1, 1, -1, 1, -1]), 0.5)
  
file_path: essentia/test/src/unittests/sfx/test_tctototal.py
imports: from essentia_test import *
  from math import exp
label_desc: Use image node_id 10 for calling the TestTCToTotal obj's underlying member method code with example usage: obj.testAlternating() without return types