If this was in Japan, it might meet code. I was in Japan for a week some years ago, and everything there (buildings, cars, desks, elevators, etc) are about 2/3 the linear size compared to America. But this looks like an American installation. Japanese wiring did not impress me, wonder how it works without catching fire.... (Their line voltage is lower than ours, 100V).