Add missing imports to code example