#1851 introduced a change into utils.py which required an in-function import in order to avoid a circular import with logger.py
Originally posted by @henryiii in #1851 (comment)
We can probably split utils up later to avoid the circular import, it's pretty big. Not something to worry about for this PR.
Needs design input