def import_submodules(package_name):
import importlib, pkgutil<EOL>package = importlib.import_module(package_name)<EOL>return {<EOL>name: importlib.import_module(package_name + '<STR_LIT:.>' + name)<EOL>for _, name, _ in pkgutil.iter_modules(package.__path__)<EOL>}<EOL>
Import all submodules of a module.