def register(mapping, cls):
    name = cls.__resource__
    if not name in registry:
        path = os.path.dirname(
                os.path.abspath(sys.modules[cls.__module__].__file__))
        if not name in registry:
            mod = get_module(mapping, path)
            registry[name] = cls(mod)
dataset/ETHPy150Open comodit/synapse-agent/synapse/register_plugin.py/register/original