code: def register(self, name, obj):
          
          if name in self.all:
              log.debug('register: %s already existed: %s', name, obj.name)
              # code.interact(local=locals())
              raise DuplicateDefinitionException(
                  'register: %s already existed: %s' % (name, obj.name))
          log.debug('register: %s ', name)
          self.all[name] = obj
          return obj
docs: Registers an unique type description