import importlib, pkgutil


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