code: def register_provider(cls, provider):
          
          def decorator(subclass):
              """Register as decorator function."""
              cls._providers[provider] = subclass
              subclass.name = provider
              return subclass
          return decorator
docs: Register method to keep list of providers.