code: def test_audio_melspec_consistency():
      dnsmos_th = DNSMOS_local(
          None, None, use_gpu=False, convert_to_torch=True
      )
      dnsmos_onnx = DNSMOS_local(
          None, None, use_gpu=False, convert_to_torch=False
      )
      x = torch.randn(8000)
      audio_melspec_th = dnsmos_th.audio_melspec(x)
      audio_melspec_onnx = dnsmos_onnx.audio_melspec(x.numpy())
      torch.testing.assert_close(
          audio_melspec_th, torch.from_numpy(audio_melspec_onnx)
      )
  
file_path: espnet/test/espnet2/enh/layers/test_dnsmos.py
imports: import urllib.request
  from pathlib import Path
  import numpy
  import pytest
  import torch
  from espnet2.enh.layers.dnsmos import DNSMOS_local
label_desc: Use image node_id 1 for calling a global function with example usage: test_audio_melspec_consistency() without return types