def import_namespaced_class(path):
    parts = path.split('.')
    return getattr(importlib.import_module('.'.join(parts[0:-1])), parts[-1])
Pass in a string in the format of foo.Bar, foo.bar.Baz, foo.bar.baz.Qux
dataset/ETHPy150Open gmr/tinman/tinman/utils.py/import_namespaced_class