def _import_object(source):
    modname, modattr = source.rsplit(".",1)
    mod = __import__(modname, fromlist=[modattr], level=0)
    return getattr(mod, modattr)
helper to import object from module; accept format `path.to.object`
dataset/ETHPy150Open twisted/ldaptor/ldaptor/compat.py/_import_object