code: def wav_to_mel(
      *, wav: np.ndarray = None, mel_basis=None, **kwargs
  ) -> np.ndarray:
      """Compute a melspectrogram from a waveform."""
      D = stft(y=wav, **kwargs)
      S = spec_to_mel(spec=np.abs(D), mel_basis=mel_basis, **kwargs)
      return S.astype(np.float32)
  
imports: from io import BytesIO
  from typing import Tuple
  import librosa
  import numpy
  import scipy
  import soundfile
  from librosa import magphase, pyin
label_desc: Use image node_id 12 for calling a global function with example usage: wav_to_mel() and returns: S