code: def plot(waveforms, spec, sample_rate):
      waveforms = waveforms.cpu().detach()
  
      fig, [ax1, ax2] = plt.subplots(2, 1)
      ax1.plot(waveforms[0])
      ax1.set_xlim(0, waveforms.size(-1))
      ax1.grid(True)
      ax2.imshow(spec[0].cpu().detach(), origin="lower", aspect="auto")
      return IPython.display.Audio(waveforms[0:1], rate=sample_rate)
  
imports: import torch
  import torchaudio
  import IPython
  import matplotlib.pyplot
label_desc: Use image node_id 3 for calling a global function with example usage: plot(waveforms, spec, sample_rate) and returns: IPython