docstr: `soundfile_backend.info` can check flac file correctly
docstr_tok: ["`","soundfile_backend.info","`","can","check","flac","file","correctly"]
code: def test_flac(self, sample_rate, num_channels):
      """`soundfile_backend.info` can check flac file correctly"""
      duration = 1
      num_frames = sample_rate * duration
      data = torch.randn(num_frames, num_channels).numpy()
      path = self.get_temp_path("data.flac")
      soundfile.write(path, data, sample_rate)
  
      info = soundfile_backend.info(path)
      assert info.sample_rate == sample_rate
      assert info.num_frames == num_frames
      assert info.num_channels == num_channels
      assert info.bits_per_sample == 16
      assert info.encoding == "FLAC"
  
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 2 for calling the TestInfo obj's underlying member method code with example usage: obj.test_flac(sample_rate, num_channels) without return types