code: def save_pdf(path):
      """
      Saves a pdf of the current matplotlib figure.
  
      :param path: str, filepath to save to
      """
  
      pp = PdfPages(path)
      pp.savefig(pyplot.gcf())
      pp.close()
  
label_desc: Use image node_id 1 for calling a global function with example usage: save_pdf(path) without return types