docstr: Filters are applied from the first to the last
docstr_tok: ["Filters","are","applied","from","the","first","to","the","last"]
code: def test_filter_waveform_diff(self):
      """Filters are applied from the first to the last"""
      kernel_size = 3
      waveform = torch.arange(
          -10, 10, dtype=self.dtype, device=self.device
      )
      kernels = torch.randn(
          (2, kernel_size), dtype=self.dtype, device=self.device
      )
  
      # use both filters.
      mix = F.filter_waveform(waveform, kernels)
      # use only one of them
      ref1 = F.filter_waveform(waveform[:10], kernels[0:1])
      ref2 = F.filter_waveform(waveform[10:], kernels[1:2])
  
      print("mix:", mix)
      print("ref1:", ref1)
      print("ref2:", ref2)
      # The first filter is effective in the first half
      self.assertEqual(mix[:10], ref1[:10])
      # The second filter is effective in the second half
      self.assertEqual(mix[-9:], ref2[-9:])
  
imports: import torch
  import torchaudio.prototype.functional
  from parameterized import param, parameterized
  from torchaudio_unittest.common_utils import nested_params, TestBaseMixin
  from .dsp_utils import exp_sigmoid, freq_ir, oscillator_bank, sinc_ir
label_desc: Use image node_id 13 for calling the FunctionalTestImpl obj's underlying member method code with example usage: obj.test_filter_waveform_diff() without return types