This line feels lost, between the `def` and the docstring. I guess it could be imported at module level.