generator: avoid the import statement if there are no imports