def get_instance(self, name=None):
        try:
            return registry[name] if name else registry
        except __HOLE__:
            raise ResourceException("The resource [%s] does not exist" % name)
dataset/ETHPy150Open comodit/synapse-agent/synapse/resource_locator.py/ResourceLocator.get_instance