def load_module(module_name):
    """ Dynamically load a module

    TODO:
        Throw a custom error and deal with better.

    Returns:
        module: an imported module name
    """
    try:
        module = resolve_name(module_name)
    except __HOLE__:
        raise error.NotFound(msg=module_name)

    return module
dataset/ETHPy150Open panoptes/POCS/panoptes/utils/modules.py/load_module