code: def test_oscillator_bank(self, sample_rate, shape):
      numel = math.prod(shape)
  
      # use 1.9 instead of 2 so as to include values above nyquist frequency
      fmax = sample_rate / 1.9
      freq = torch.linspace(
          -fmax,
          fmax,
          numel,
          dtype=self.dtype,
          device=self.device,
          requires_grad=True,
      ).reshape(shape)
      amps = torch.linspace(
          -5,
          5,
          numel,
          dtype=self.dtype,
          device=self.device,
          requires_grad=True,
      ).reshape(shape)
  
      assert gradcheck(F.oscillator_bank, (freq, amps, sample_rate))
  
file_path: audio/test/torchaudio_unittest/prototype/functional/autograd_test_impl.py
imports: import math
  import torch
  import torchaudio.prototype.functional
  from parameterized import parameterized
  from torch.autograd import gradcheck
  from torchaudio_unittest.common_utils import TestBaseMixin
label_desc: Use image node_id 1 for calling the AutogradTestImpl obj's underlying member method code with example usage: obj.test_oscillator_bank(sample_rate, shape) without return types