code: def testConstantInput(self):
      beatPeriod = 21168  # N.B The beat period is 21168 samples for 125 bpm @ 44.1k samp. rate
      onesAudio = ones(beatPeriod)
      bpmEstimate = 0
      confidence = LoopBpmConfidence()(onesAudio, bpmEstimate)
      self.assertEquals(0, confidence)
  
      # Non-zero estimate check results in non-zero confidence
      # The estimation is based on audio length.
      # Different constant input length will result in different estimations.
      bpmEstimate = 125
      confidence = LoopBpmConfidence()(onesAudio, bpmEstimate)
      self.assertEquals(1, confidence)
  
file_path: essentia/test/src/unittests/rhythm/test_loopbpmconfidence.py
imports: from essentia_test import *
  from essentia.standard import MonoLoader, LoopBpmConfidence
label_desc: Use image node_id 7 for calling the TestLoopBpmConfidence obj's underlying member method code with example usage: obj.testConstantInput() without return types