code: def spec_to_mel(
      *, spec: np.ndarray, mel_basis: np.ndarray = None, **kwargs
  ) -> np.ndarray:
      """Convert a full scale linear spectrogram output of a network to a melspectrogram.
  
      Args:
          spec (np.ndarray): Normalized full scale linear spectrogram.
  
      Shapes:
          - spec: :math:`[C, T]`
  
      Returns:
          np.ndarray: Normalized melspectrogram.
      """
      return np.dot(mel_basis, spec)
  
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 9 for calling a global function with example usage: spec_to_mel() and returns: np