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