code: def save_model(self, fname):
          
          if self.model is None:
              self.make_model()
  
          with open(fname, 'wb') as fh:
              fh.write(self.model.encode('utf-8'))
docs: Save the assembled HTML into a file.
  
          Parameters
          ----------
          fname : str
              The path to the file to save the HTML into.