def _setup_base_package(module_name):
    try:
        mod = __import__(module_name, None, None, ['__name__'])
    except __HOLE__:
        mod = None
        if '.' in module_name:
            parent_mod = __import__(module_name.rsplit('.', 1)[0],
                                    None, None, ['__name__'])
        else:
            parent_mod = None

    if mod is None:
        mod = _IntentionallyEmptyModule(module_name)
        if parent_mod is not None:
            setattr(parent_mod, module_name.rsplit('.', 1)[-1], mod)
        sys.modules[module_name] = mod
dataset/ETHPy150Open dragondjf/PFramer/util/pluginbase.py/_setup_base_package