code: def test_extend_pitch(self):
      num_frames = 5
      input = torch.ones(
          (num_frames, 1), device=self.device, dtype=self.dtype
      )
  
      num_pitches = 7
      pattern = [i + 1.0 for i in range(num_pitches)]
  
      self._assert_consistency(F.extend_pitch, (input, num_pitches))
      self._assert_consistency(F.extend_pitch, (input, pattern))
      self._assert_consistency(
          F.extend_pitch, (input, torch.tensor(pattern))
      )
  
file_path: audio/test/torchaudio_unittest/prototype/functional/torchscript_consistency_test_impl.py
imports: import unittest
  import torch
  import torchaudio.prototype.functional
  from parameterized import parameterized
  from torchaudio_unittest.common_utils import skipIfNoRIR, TestBaseMixin, torch_script
label_desc: Use image node_id 4 for calling the TorchScriptConsistencyTestImpl obj's underlying member method code with example usage: obj.test_extend_pitch() without return types