code: def save(self, filelike):
          
          # Shade any remaining missing labels if desired.
          self._shade_remaining_missing()
  
          # Create a canvas.
          canvas = Canvas(filelike, pagesize=self._pagesize)
  
          # Render each created page onto the canvas.
          for page in self._pages:
              renderPDF.draw(page, canvas, 0, 0)
              canvas.showPage()
  
          # Done.
          canvas.save()
docs: Save the file as a PDF.
  
          Parameters
          ----------
          filelike: path or file-like object
              The filename or file-like object to save the labels under. Any
              existing contents will be overwritten.