This import should at the module level, and not between the `def` and the docstring.