code: def testNegative20SecOf40Sec(self):
      # Note: this test assumes the thresholdRatio is 40%
      input1 = [randint(-100, -41) for x in range(44100 * 10)]
      input2 = [randint(0, 39) for x in range(44100 * 10)]
      input3 = [randint(41, 100) for x in range(44100 * 10)]
      input3[0] = 100  # to ensure that at least one element is 100
      input4 = [randint(-39, 0) for x in range(44100 * 10)]
  
      input = input1 + input2 + input3 + input4
  
      self.assertAlmostEqual(EffectiveDuration()(input), 20)
  
file_path: essentia/test/src/unittests/temporal/test_effectiveduration.py
imports: from essentia_test import *
  from random import randint
label_desc: Use image node_id 8 for calling the TestEffectiveDuration obj's underlying member method code with example usage: obj.testNegative20SecOf40Sec() without return types