pub fn write_output_file( output_file: &str, output: &Output, config: &OutputWriteConfig, ) -> Result<()>