docstr: `self._info` can check sph file correctly
docstr_tok: ["`","self._info","`","can","check","sph","file","correctly"]
code: def test_sphere(
      self, sample_rate, num_channels, subtype_and_bit_depth
  ):
      """`self._info` can check sph file correctly"""
      duration = 1
      num_frames = sample_rate * duration
      data = torch.randn(num_frames, num_channels).numpy()
      path = self.get_temp_path("data.nist")
      subtype, bits_per_sample = subtype_and_bit_depth
      soundfile.write(path, data, sample_rate, subtype=subtype)
  
      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 == bits_per_sample
      assert info.encoding == "PCM_S"
  
imports: import tarfile
  import warnings
  from functools import partial
  from unittest.mock import patch
  import torch
  from torchaudio._backend.utils import get_info_func
  from torchaudio._internal import module_utils
  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 4 for calling the TestInfo obj's underlying member method code with example usage: obj.test_sphere(sample_rate, num_channels, subtype_and_bit_depth) without return types