Numerous code violations not-withstanding, This guy must have spent quite a good deal of time fabricating this "masterpiece" . There are, of course, 3R panels readily available that are designed to safely serve this particular function, certainly at far less cost.
I guess he gets an "A" for creativity, but not for anything else.
The bell box next to this enclosure doesn't appear to have any strain relief on the NM cable. Overlooking the fact that this shouldn't be NM cable. BTW, how is that cable getting there? It appears that the NM goes into the pipe at the bottom of the enclosure, but then magically appears outside.