core: replace pkg_resources
with importlib.metadata
#2261
Merged
pkg_resources
with importlib.metadata
#2261