def _load_type(type_name):
    module_name, name = type_name.rsplit('.', 1)
    mod = __import__(module_name, fromlist = [name])
    return getattr(mod, name)
_load_type('exceptions.KeyError') -> KeyError
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/voodoo/gen/util.py/_load_type