rewrite neuralnetwork_test