save_outputs function

Save a list of outputs