docstr: `soundfile_backend.load` can load wav format correctly.
  
  Wav data loaded with soundfile backend should match those with scipy
docstr_tok: ["`","soundfile_backend.load","`","can","load","wav","format","correctly",".","Wav","data","loaded","with","soundfile","backend","should","match","those","with","scipy"]
code: def assert_wav(
      self,
      dtype,
      sample_rate,
      num_channels,
      normalize,
      channels_first=True,
      duration=1,
  ):
      """`soundfile_backend.load` can load wav format correctly.
  
      Wav data loaded with soundfile backend should match those with scipy
      """
      path = self.get_temp_path("reference.wav")
      num_frames = duration * sample_rate
      data = get_wav_data(
          dtype,
          num_channels,
          normalize=normalize,
          num_frames=num_frames,
          channels_first=channels_first,
      )
      save_wav(path, data, sample_rate, channels_first=channels_first)
      expected = load_wav(
          path, normalize=normalize, channels_first=channels_first
      )[0]
      data, sr = self._load(
          path, normalize=normalize, channels_first=channels_first
      )
      assert sr == sample_rate
      self.assertEqual(data, expected)
  
imports: import os
  import tarfile
  from functools import partial
  from unittest.mock import patch
  import torch
  from parameterized import parameterized
  from torchaudio._backend.utils import get_load_func
  from torchaudio._internal import module_utils
  from torchaudio_unittest.common_utils import get_wav_data, load_wav, normalize_wav, PytorchTestCase, save_wav, skipIfNoModule, TempDirMixin
  from .common import dtype2subtype, parameterize, skipIfFormatNotSupported
label_desc: Use image node_id 1 for calling the LoadTestBase obj's underlying member method code with example usage: obj.assert_wav(dtype, sample_rate, num_channels, normalize, channels_first, duration) without return types