class_docstr: Test functions defined in `functional` module
class_docstr_tok: ["Test","functions","defined","in","`","functional","`","module"]
code: def test_resample_waveform(self, resampling_method):
      num_channels = 3
      sr = 16000
      new_sr = sr // 2
      multi_sound = common_utils.get_whitenoise(
          sample_rate=sr,
          n_channels=num_channels,
          duration=0.5,
      )
      kwargs = {
          "orig_freq": sr,
          "new_freq": new_sr,
          "resampling_method": resampling_method,
      }
      func = partial(F.resample, **kwargs)
  
      self.assert_batch_consistency(
          func,
          inputs=(multi_sound,),
          rtol=1e-4,
          atol=1e-7,
      )
  
imports: import itertools
  import math
  from functools import partial
  import torch
  import torchaudio.functional
  from parameterized import parameterized, parameterized_class
  from torchaudio_unittest import common_utils
label_desc: Use image node_id 13 for calling the TestFunctional obj's underlying member method code with example usage: obj.test_resample_waveform(resampling_method) without return types