code: def get_mfccs(
      data: torch.Tensor,
      sampling_rate: float,
      num_mfccs: int,
      window_length: float = 0.023,
  ) -> torch.Tensor:
      """Get Mel Frequency Cepstral Coefficients from an audio signal.
  
      Explanation of Mel-Frequency Cepstral Coefficients (MFCCs):
      > https://librosa.org/doc/main/generated/librosa.stft.html#librosa.stft
  
      Args:
          data: one channel of the audio signal, as a 1-D tensor.
          sampling_rate: the sampling rate of the audio.
          num_mfccs: the number of cepstral coefficients to use.
          window_length: the window length used for computing the spectrogram. By
              default, we choose 23ms, which is a good value for human speech.
      """
      try:
          from torchaudio.transforms import (  # Importing torchaudio takes ~0.6 s, but often not needed. That's why it is imported inside this function.
              MFCC,
          )
      except ImportError:
          logger.error(
              "Torchaudio is not installed. Please install it."
          )
  
      n_fft = sampling_rate * window_length
      # Round to the nearest power of 2.
      n_fft = 2 ** round(math.log2(n_fft))
  
      return MFCC(
          sample_rate=sampling_rate,
          n_mfcc=num_mfccs,
          melkwargs={
              "n_fft": n_fft,
              # librosa's default value: https://github.com/librosa/librosa/blob/71077174b9e73ae81d268f81551bb9667bf3693b/librosa/filters.py#L132
              "n_mels": 128,
              # librosa's default value: https://github.com/librosa/librosa/blob/71077174b9e73ae81d268f81551bb9667bf3693b/librosa/feature/spectral.py#L2027
              "hop_length": 512,
              "mel_scale": "slaney",
              # librosa's default value: https://github.com/librosa/librosa/blob/71077174b9e73ae81d268f81551bb9667bf3693b/librosa/filters.py#L136
              "norm": "slaney",
          },
      )(data.float())
  
imports: import math
  import torch
  from utils import logger
label_desc: Use image node_id 1 for calling a global function with example usage: get_mfccs(data, sampling_rate, num_mfccs, window_length) and returns: MFCC