code: def testNyquist(self):
      # input is [1, -1, 1, -1, ...] which corresponds to a sine of frequency Fs/2
      signalSize = 1024
      fftSize = int(signalSize / 2) + 1
  
      inputNyquist = ones(signalSize)
      for i in range(signalSize):
          if i % 2 == 1:
              inputNyquist[i] = -1.0
  
      expected = [0 + 0j] * fftSize
      expected[-1] = (1 + 0j) * signalSize
  
      self.assertAlmostEqualVector(FFT()(inputNyquist), expected)
  
file_path: essentia/test/src/unittests/standard/test_fft.py
imports: from essentia_test import *
  import math
label_desc: Use image node_id 2 for calling the TestFFT obj's underlying member method code with example usage: obj.testNyquist() without return types