code: def two_slops(bark_psd, delta_TM, bark_maskee):
      """
      returns the masking threshold for each masker using two slopes as the spread function
      """
      Ts = []
      for tone_mask in range(bark_psd.shape[0]):
          bark_masker = bark_psd[tone_mask, 0]
          dz = bark_maskee - bark_masker
          zero_index = np.argmax(dz > 0)
          sf = np.zeros(len(dz))
          sf[:zero_index] = 27 * dz[:zero_index]
          sf[zero_index:] = (
              -27 + 0.37 * max(bark_psd[tone_mask, 1] - 40, 0)
          ) * dz[zero_index:]
          T = bark_psd[tone_mask, 1] + delta_TM[tone_mask] + sf
          Ts.append(T)
      return Ts
  
file_path: cleverhans/cleverhans_v3.1.0/examples/adversarial_asr/generate_masking_threshold.py
imports: import scipy.io.wavfile
  import numpy
  from scipy.fftpack import fft
  from scipy.fftpack import ifft
  from scipy import signal
  import scipy
  import librosa
label_desc: Use image node_id 4 for calling a global function with example usage: two_slops(bark_psd, delta_TM, bark_maskee) and returns: Ts