docstr: FFmpeg dispatcher can save audio data to pathlike object
docstr_tok: ["FFmpeg","dispatcher","can","save","audio","data","to","pathlike","object"]
code: def test_pathlike(self):
      """FFmpeg dispatcher can save audio data to 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,
      )
      self._save(pathlib.Path(path), data, sample_rate)
  
imports: import io
  import os
  import pathlib
  import subprocess
  import sys
  from functools import partial
  from typing import Optional
  import torch
  from parameterized import parameterized
  from torchaudio._backend.ffmpeg import _parse_save_args
  from torchaudio._backend.utils import get_save_func
  from torchaudio.io import CodecConfig
  from torchaudio_unittest.backend.dispatcher.sox.common import get_enc_params, name_func
  from torchaudio_unittest.common_utils import disabledInCI, get_wav_data, load_wav, nested_params, PytorchTestCase, save_wav, skipIfNoExec, skipIfNoFFmpeg, TempDirMixin, TorchaudioTestCase
label_desc: Use image node_id 1 for calling the SaveTest obj's underlying member method code with example usage: obj.test_pathlike() without return types