With PsychoPy 3.2.3 (macOS and Windows).
On https://www.psychopy.org/api/hardware/iolab.html#module-psychopy.hardware.iolab it is written that
The ioLabs library needs to be installed. It is included in the Standalone distributions of PsychoPy as of version 1.62.01.
If I type
from psychopy.hardware import iolab in Coder’s shell, I get the error name ‘USBBox’ is not defined, line 41 of iolab.py.
It seems that ioLabs library are not included in the “Standalone” distribution.