code: def save_model(model, output_file):
      
      if not output_file:
          return
  
      with open(output_file, 'wb') as f:
          pickle.dump(model, f)
      print("Saved model to file '{}'.".format(output_file))
docs: Save model to output_file, if given