<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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()