importlib.find_loader(name, path=None)
Find the loader for a module, optionally within the specified path. If the module is in sys.modules, then sys.modules[name].__loader__ is returned (unless the loader would be None or is not set, in which case ValueError is raised). Otherwise a search using sys.meta_path is done. None is returned if no loader is found.
A dotted name does not have its parent’s implicitly imported as that requires loading them and that may not be desired. To properly impor