I think it would be better to have the import at the top of the file, with all other imports.