code: def testEmpty(self):
      nFrames = 10
      input = ones([nFrames, 0])
      sRate = SilenceRate(thresholds=[0.1])
      gen = VectorInput(input)
      pool = Pool()
      gen.data >> sRate.frame
      sRate.threshold_0 >> (pool, "srate")
      # can compute energy of empty arrays. An exception is thrown:
      self.assertRaises(EssentiaException, lambda: run(gen))
  
file_path: essentia/test/src/unittests/standard/test_silencerate_streaming.py
imports: from essentia_test import *
  from essentia.streaming import SilenceRate
  from numpy import random
label_desc: Use image node_id 5 for calling the TestSilenceRate_Streaming obj's underlying member method code with example usage: obj.testEmpty() without return types