code: def getSignal(signalNeeded):
      if signalNeeded.startswith("Tones"):
          return getTone(signalNeeded)
      elif signalNeeded.startswith("White Noise"):
          # Generate white noise
          return getWhiteNoise()
      elif signalNeeded.startswith("LPF"):
          # White noise through a low pass filter with different cutoff frequencies
          return getLPF(signalNeeded)
      elif signalNeeded.startswith("BPF"):
          # White noise through a bandpass filter with different cutoff frequencies
          return getBPF(signalNeeded)
      else:
          print("Unknown signal type in getSignal")
          return np.array(zeros(1024))
  
file_path: essentia/test/src/qa/hpcp/test_hpcp_generatesignals.py
imports: import random
  import numpy
  from scipy.signal import spectrogram
  import essentia
  from essentia.standard import *
  from test_hpcp_parameters import *
label_desc: Use image node_id 2 for calling a global function with example usage: getSignal(signalNeeded) and returns: getTone, getWhiteNoise, getLPF, getBPF, np