imports are generated at function level