code: def plot_multipitch_to_numpy(pitch_gt, pitch_pred, ylim_range=None):
      fig, ax = plt.subplots(figsize=(12, 3))
      plt.plot(pitch_gt, label="Ground truth")
      plt.plot(pitch_pred, label="Predicted")
      if ylim_range is not None:
          plt.ylim(ylim_range)
      plt.xlabel("Frames")
      plt.ylabel("Pitch")
      plt.legend()
      plt.tight_layout()
  
      fig.canvas.draw()
      data = save_figure_to_numpy(fig)
      plt.close()
      return data
  
imports: from enum import Enum
  from typing import Optional, Tuple
  import librosa
  import matplotlib.pylab
  import numpy
  import torch
  from einops import rearrange
  from numba import jit, prange
  from nemo.collections.tts.torch.tts_data_types import DATA_STR2DATA_CLASS, MAIN_DATA_TYPES, WithLens
  from nemo.utils import logging
  from nemo.utils.decorators import deprecated
label_desc: Use image node_id 17 for calling a global function with example usage: plot_multipitch_to_numpy(pitch_gt, pitch_pred, ylim_range) and returns: data