docstr: `self._info` can check wav file correctly
docstr_tok: ["`","self._info","`","can","check","wav","file","correctly"]
code: def test_wav(self, dtype, sample_rate, num_channels):
      """`self._info` can check wav file correctly"""
      duration = 1
      path = self.get_temp_path("data.wav")
      data = get_wav_data(
          dtype,
          num_channels,
          normalize=False,
          num_frames=duration * sample_rate,
      )
      save_wav(path, data, sample_rate)
      info = self._info(path)
      assert info.sample_rate == sample_rate
      assert info.num_frames == sample_rate * duration
      assert info.num_channels == num_channels
      assert info.bits_per_sample == sox_utils.get_bit_depth(dtype)
      assert info.encoding == get_encoding("wav", dtype)
  
imports: import itertools
  import os
  from functools import partial
  from parameterized import parameterized
  from torchaudio._backend.utils import get_info_func
  from torchaudio._internal import module_utils
  from torchaudio_unittest.backend.common import get_encoding
  from torchaudio_unittest.common_utils import disabledInCI, get_asset_path, get_wav_data, HttpServerMixin, PytorchTestCase, save_wav, skipIfNoExec, skipIfNoModule, skipIfNoSox, skipIfNoSoxDecoder, sox_utils, TempDirMixin
  from .common import name_func
label_desc: Use image node_id 1 for calling the TestInfo obj's underlying member method code with example usage: obj.test_wav(dtype, sample_rate, num_channels) without return types