code: def test_extend_pitch(self):
      num_frames, num_pitches = 5, 7
      input = torch.ones(
          (num_frames, 1),
          device=self.device,
          dtype=self.dtype,
          requires_grad=True,
      )
      pattern = torch.linspace(
          1,
          num_pitches,
          num_pitches,
          device=self.device,
          dtype=self.dtype,
          requires_grad=True,
      )
  
      assert gradcheck(F.extend_pitch, (input, num_pitches))
      assert gradcheck(F.extend_pitch, (input, pattern))
  
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 2 for calling the AutogradTestImpl obj's underlying member method code with example usage: obj.test_extend_pitch() without return types