code: def testARealCase(self):
      # The expected values were recomputed from commit
      # ded38eaa7e4c081a73c4e16fffec491fe5ac9ab4
      #
      # The expeted values were compared with the vamp pYIN
      # implementation of the YIN algorithm producing very
      # similar values.
      #
      # https://code.soundsoftware.ac.uk/projects/pyin
  
      frameSize = 1024
      sr = 44100
      hopSize = 512
      filename = join(testdata.audio_dir, "recorded", "vignesh.wav")
      audio = MonoLoader(filename=filename, sampleRate=44100)()
      frames = FrameGenerator(
          audio, frameSize=frameSize, hopSize=hopSize
      )
      pitchDetect = PitchYin(frameSize=frameSize, sampleRate=sr)
      pitch = []
      confidence = []
      for frame in frames:
          f, conf = pitchDetect(frame)
          pitch += [f]
          confidence += [conf]
  
      expected_pitch = numpy.load(
          join(filedir(), "pitchyin/vignesh_pitch.npy")
      )
      expected_conf = numpy.load(
          join(filedir(), "pitchyin/vignesh_confidance.npy")
      )
  
      self.assertAlmostEqualVector(pitch, expected_pitch)
      self.assertAlmostEqualVector(confidence, expected_conf, 5e-6)
  
file_path: essentia/test/src/unittests/tonal/test_pitchyin.py
imports: from essentia_test import *
  from numpy import sin, pi, mean, random
label_desc: Use image node_id 9 for calling the TestPitchYin obj's underlying member method code with example usage: obj.testARealCase() without return types