This function checks whether or not the SHAREDNET_RECIPErecipe
is correct. It checks all layers by calling check_layer_recipe. Finally,
it checks whether the first layer is an input layer and the last layer
an output layer (INPUT_LAYER and OUTPUT_LAYER in the LayerFlag field,
see LAYER-flags).