code: def named_config(self, func):
          
          config_scope = ConfigScope(func)
          self._add_named_config(func.__name__, config_scope)
          return config_scope
docs: Decorator to turn a function into a named configuration.
  
          See :ref:`named_configurations`.