code: def stft2logmelspectrogram(
      x_stft, fs, n_mels, n_fft, fmin=None, fmax=None, eps=1e-10
  ):
      # x_stft: (Time, Channel, Freq) or (Time, Freq)
      fmin = 0 if fmin is None else fmin
      fmax = fs / 2 if fmax is None else fmax
  
      # spc: (Time, Channel, Freq) or (Time, Freq)
      spc = np.abs(x_stft)
      # mel_basis: (Mel_freq, Freq)
      mel_basis = librosa.filters.mel(
          sr=fs, n_fft=n_fft, n_mels=n_mels, fmin=fmin, fmax=fmax
      )
      # lmspc: (Time, Channel, Mel_freq) or (Time, Mel_freq)
      lmspc = np.log10(np.maximum(eps, np.dot(spc, mel_basis.T)))
  
      return lmspc
  
imports: import librosa
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: stft2logmelspectrogram(x_stft, fs, n_mels, n_fft, fmin, fmax, eps) and returns: lmspc