1.  `badge` is imported on line 9.
2.  Generally a bad idea to import libraries in functions.