My 5hp baldor (213t 1-3/8" shaft 109 lbs weight) motor is 28.5 amps, at 208-230v, on the name plate, then add in the 1.15 service factor. It only lists one amperage for the voltage range. Motors have become more efficient over the years and the newer ones pull less current. Last I checked, it pulled 27 amps when it got up to 170 psi on a Westinghouse air brake company compressor, running just over the 800 rpm the pump is rated to at 5hp. Voltage is normally 244 here and I have seen 169 amps flash on my greenlee clamp meter, per leg.
For testing or temporary usage, Nema 6-50 plug and receptacle and 10ga sj cord will work. Of course, I let the pressure switch do the work and didn't plug it in or unplug it while running. It may have run on 10ga romex and 6-50 setup, tied to a 30 amp breaker for a while, but the user may have had plenty of experience running electrical and kept a close eye on it. Now, it is wired into a 50 amp breaker with #6 wire and a magnetic starter setup.
Code is what is best and what is legal and safe. What works in the real world is what people can get away with. It works until it doesn't.
For testing, I wouldn't sweat the details, but for permanent use don't risk it and just make it to code.