My $0.02.
Buried over 3000' of water and power service for our place. Used white Sched 40 for all of the water and all of the buried electrical. Used gray for anything exposed to sun. Also used the proper gray (long radius, etc.) fittings for the electrical (no matter where it was located) to make pulling easy. At the time we were buying it, white was 1/2 the cost of gray. Every line was color coded, including the electrical (which was painted gray to match the fittings.) This was done to avoid cutting into electrical, thinking it was water, though the electrical is buried 12" below the water to comply with NEC. Having had a water spigot run over that required opening the trench - the color coding is as visible as the day it was applied.
While the attached pictures are scary - the only time I've seen stuff like that was when I had to hire a licensed electrician. I used to live in the City of Houston and needed a house rewired quickly and a certificate for the insurance company (knob and tube had to go). While I am a PE licensed to design electrical circuits/equipment in the State of Texas, I am unable to pull a permit in the CoH. I am also prohibited from taking the test to get an electrician's license because I don't have eight years as a journeyman. But I digress, the licensed electrician made flying splices in the attic, left entire rooms without power because he coudn't figure out his own schematic/approach to rewiring, left open junction boxes, failed to terminate the service correctly, etc. The real winner was finding the outlet in the kitchen didn't work because it was cross wired to two different circuits. What makes this worse is that the entire job was inspected by the CoH inspector and appproved - I doubt he even slowed down when he drove by. I spent two days finishing the job while the man with the license sat there and told me stories about how hard it was to pass the license exam. Oh, and he didn't staple or secure a thing. The only thing holding wires together were the nuts in the junction boxes, no wire clamps, no staples, no conduit, nada. Oh, and he didn't even tape the nuts, despite the level of mechanical support he was expecting them to supply.
A long winded story to say that Code/NEC/whatever won't protect from incompetence and corruption whether licensed or not and that if you understand why NEC/Code require what they do, calculated risks like using white versus gray shouldn't be an emotional issue. You may also understand why it is I grumble when I get passed by a truck bearing a union bumper sticker admonishing me that, "Electricity isn't a Hobby". What a joke. I found it wonderfully refreshing when the County Engineer's office, in response to a question about which model building code they use, responded with, "None. It's your house, if you don't want to use any nails, that's your choice." A little freedom still exists in the land of the free.