def register(self, name, serializer):
        with self._lock:
            if name in self._names:
                raise NameAlreadyRegistered(name)

            self._types.append((name, serializer))
            self._names[name] = serializer
            self._cache.clear()
dataset/ETHPy150Open abusesa/abusehelper/abusehelper/core/serialize.py/Serializer.register/original