def import_submodules(package_name, *submodules):
    package = sys.modules[package_name]
    return {
        name: importlib.import_module(package_name + '.' + name)
        for _, name, _ in pkgutil.walk_packages(package.__path__)
        if not submodules or name in submodules
    }

#  pylama:ignore=W0212
Given a block of text, break it down into a GenText() node. Raises
dataset/ETHPy150Open klen/muffin/muffin/utils.py/import_submodules--crossover with--dataset/ETHPy150Open erkyrath/tworld/lib/twcommon/gentext.py/parse