### Description `pkgutil.ImpImporter` has been [deprecated since Python 3.3](https://docs.python.org/3.11/library/pkgutil.html?highlight=impimporter#pkgutil.ImpImporter). It is slated to [be removed in Python 3.12](https://github.com/python/cpython/issues/98040) but until `pip` no longer uses it, we probably can't remove this long deprecated class. ### Expected behavior _No response_ ### pip version 22.2.2 ### Python version 3.12 ### OS macOS ### How to Reproduce 1. Grab the CPython branch: `gh pr checkout 98059` 2. configure && make test 3. `test_venv` fails because `pip` uses this API 4. See https://github.com/python/cpython/actions/runs/3215689824/jobs/5256965254 ### Output _No response_ ### Code of Conduct - [X] I agree to follow the [PSF Code of Conduct](https://www.python.org/psf/conduct/).