code: def plot_pitch(waveform, sr, pitch):
      figure, axis = plt.subplots(1, 1)
      axis.set_title("Pitch Feature")
      axis.grid(True)
  
      end_time = waveform.shape[1] / sr
      time_axis = torch.linspace(0, end_time, waveform.shape[1])
      axis.plot(
          time_axis, waveform[0], linewidth=1, color="gray", alpha=0.3
      )
  
      axis2 = axis.twinx()
      time_axis = torch.linspace(0, end_time, pitch.shape[1])
      axis2.plot(
          time_axis, pitch[0], linewidth=2, label="Pitch", color="green"
      )
  
      axis2.legend(loc=0)
  
file_path: audio/examples/tutorials/audio_feature_extractions_tutorial.py
imports: import torch
  import torchaudio
  import torchaudio.functional
  import torchaudio.transforms
  import librosa
  import matplotlib.pyplot
  from IPython.display import Audio
  from matplotlib.patches import Rectangle
  from torchaudio.utils import download_asset
label_desc: Use image node_id 4 for calling a global function with example usage: plot_pitch(waveform, sr, pitch) without return types