The `imp` module has been deprecated since python 3.4, and now emits warnings when used in python 3.9.6+. The logic should be replaced with `importlib`. Now if this package, or any downstream dependency uses this, pytest deprecation warnings need to be silenced or else it fails a test suite.