code: def _register(self, name):
          
          templatehook = TemplateHook()
          self._registry[name] = templatehook
          return templatehook
docs: @Api private
          Add new :py:class:`TemplateHook` into the registry
  
          :param str name: Hook name
          :return: Instance of :py:class:`TemplateHook`
          :rtype: :py:class:`TemplateHook`