class_docstr: `apply_effects_file` gives the same result as sox on various file formats
class_docstr_tok: ["`","apply_effects_file","`","gives","the","same","result","as","sox","on","various","file","formats"]
docstr: `apply_effects_file` works on various flac format
docstr_tok: ["`","apply_effects_file","`","works","on","various","flac","format"]
code: def test_flac(self, sample_rate, num_channels):
      """`apply_effects_file` works on various flac format"""
      channels_first = True
      effects = [["band", "300", "10"]]
  
      input_path = self.get_temp_path("input.flac")
      reference_path = self.get_temp_path("reference.wav")
      sox_utils.gen_audio_file(input_path, sample_rate, num_channels)
      sox_utils.run_sox_effect(
          input_path, reference_path, effects, output_bitdepth=32
      )
  
      expected, expected_sr = load_wav(reference_path)
      found, sr = sox_effects.apply_effects_file(
          input_path, effects, channels_first=channels_first
      )
      save_wav(
          self.get_temp_path("result.wav"),
          found,
          sr,
          channels_first=channels_first,
      )
  
      assert sr == expected_sr
      self.assertEqual(found, expected)
  
imports: import itertools
  from pathlib import Path
  from parameterized import parameterized
  from torchaudio import sox_effects
  from torchaudio_unittest.common_utils import get_sinusoid, get_wav_data, load_wav, PytorchTestCase, save_wav, skipIfNoSox, sox_utils, TempDirMixin
  from .common import load_params, name_func
label_desc: Use image node_id 2 for calling the TestFileFormats obj's underlying member method code with example usage: obj.test_flac(sample_rate, num_channels) without return types