def modify_input():
doc_mapper = DocMapper()<EOL>if doc_mapper.is_pipe:<EOL><INDENT>objects = [obj for obj in doc_mapper.get_pipe()]<EOL>modified = modify_data(objects)<EOL>for line in modified:<EOL><INDENT>obj = doc_mapper.line_to_object(line)<EOL>obj.save()<EOL><DEDENT>print_success("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>print_error("<STR_LIT>")<EOL><DEDENT>
This functions gives the user a way to change the data that is given as input.