class_docstr: Test the correctness of `self._load` for various formats
class_docstr_tok: ["Test","the","correctness","of","`","self._load","`","for","various","formats"]
docstr: FFmpeg dispatcher can load waveform from pathlike object
docstr_tok: ["FFmpeg","dispatcher","can","load","waveform","from","pathlike","object"]
code: def test_pathlike(self):
      """FFmpeg dispatcher can load waveform from pathlike object"""
      sample_rate = 16000
      dtype = "float32"
      num_channels = 2
      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)
  
      waveform, sr = self._load(pathlib.Path(path))
      self.assertEqual(sr, sample_rate)
      self.assertEqual(waveform, data)
  
imports: import io
  import itertools
  import pathlib
  import tarfile
  from functools import partial
  from parameterized import parameterized
  from torchaudio._backend.ffmpeg import _parse_save_args
  from torchaudio._backend.utils import get_load_func
  from torchaudio._internal import module_utils
  from torchaudio_unittest.backend.dispatcher.sox.common import name_func
  from torchaudio_unittest.common_utils import disabledInCI, get_asset_path, get_wav_data, HttpServerMixin, load_wav, PytorchTestCase, save_wav, skipIfNoExec, skipIfNoFFmpeg, skipIfNoModule, sox_utils, TempDirMixin
  from .save_test import _convert_audio_file
label_desc: Use image node_id 1 for calling the TestLoad obj's underlying member method code with example usage: obj.test_pathlike() without return types