In https://github.com/python/cpython/pull/102217, the docs were changed for importlib.metadata. Some of those changes need to be backported here.