docstr: spectrogram should be numerically compatible with compute-spectrogram-feats
docstr_tok: ["spectrogram","should","be","numerically","compatible","with","compute-spectrogram-feats"]
code: def test_spectrogram(self, kwargs):
      """spectrogram should be numerically compatible with compute-spectrogram-feats"""
      wave_file = get_asset_path("kaldi_file.wav")
      waveform = load_wav(wave_file, normalize=False)[0].to(
          dtype=self.dtype, device=self.device
      )
      result = torchaudio.compliance.kaldi.spectrogram(
          waveform, **kwargs
      )
      command = (
          ["compute-spectrogram-feats"]
          + convert_args(**kwargs)
          + ["scp:-", "ark:-"]
      )
      kaldi_result = run_kaldi(command, "scp", wave_file)
      self.assert_equal(
          result, expected=kaldi_result, rtol=1e-4, atol=1e-6
      )
  
file_path: audio/test/torchaudio_unittest/compliance/kaldi/kaldi_compatibility_impl.py
imports: import torchaudio.compliance.kaldi
  from parameterized import parameterized
  from torchaudio_unittest.common_utils import get_asset_path, load_params, load_wav, skipIfNoExec, TempDirMixin, TestBaseMixin
  from torchaudio_unittest.common_utils.kaldi_utils import convert_args, run_kaldi
label_desc: Use image node_id 3 for calling the Kaldi obj's underlying member method code with example usage: obj.test_spectrogram(kwargs) without return types