def get_module(name):
    """
    Use the Python import function to get a Python package module by name.
    Raises ModuleImportError if the module could not be found.

    Arguments:
        name: A string. The name of the module to import and run.

    Returns:
        A python module.
    """
    try:
        return sys.modules[name]
    except __HOLE__:
        pass
    try:
        __import__(name)
    except ImportError as err:
        raise ModuleImportError("Error loading: %s (%s)." % (name, err))
    else:
        return sys.modules[name]
dataset/ETHPy150Open kdart/pycopia/aid/pycopia/module.py/get_module