A neural network oracle for quantum nonlocality problems in networks