docstr: `soundfile_backend.info` can check wav file correctly
docstr_tok: ["`","soundfile_backend.info","`","can","check","wav","file","correctly"]
code: def test_wav(self, dtype, sample_rate, num_channels):
      """`soundfile_backend.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 = soundfile_backend.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 == get_bits_per_sample("wav", dtype)
      assert info.encoding == get_encoding("wav", dtype)
  
imports: import tarfile
  import warnings
  from unittest.mock import patch
  import torch
  from torchaudio._internal import module_utils
  from torchaudio.backend import soundfile_backend
  from torchaudio_unittest.backend.common import get_bits_per_sample, get_encoding
  from torchaudio_unittest.common_utils import get_wav_data, nested_params, PytorchTestCase, save_wav, skipIfNoModule, TempDirMixin
  from .common import parameterize, skipIfFormatNotSupported
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