docs: def register(cls, name):
          """Decorator to register a class."""
          def register_decorator(reg_cls):
              def name_func(self):
                  return name
              reg_cls.name = property(name_func)
              assert issubclass(reg_cls, cls), \
                  "Must be subclass matching your NamedRegistry class"
              cls.REGISTRY[name] = reg_cls
              return reg_cls
          return register_decorator