def register(self, name, c):
        if name in self.registered \
            and c is not self.registered[name]:
            raise NameError(
                    '{} has been registered by {}'.format(name, self.registered[name]))
        self.registered[name] = c
dataset/ETHPy150Open genzj/pybingwallpaper/src/setter.py/WallpaperSetterFactory.register/original