def load_module(modname):
    last = modname.rfind('.')
    name = modname if last==(-1) else modname[:last]
    return __import__(modname, globals(), locals(), [name])
Load module as object.
dataset/ETHPy150Open michaelliao/transwarp/transwarp/utils.py/load_module