def named_config(self, func):
        """
        Decorator to turn a function into a named configuration.

        See :ref:`named_configurations`.
        """
        config_scope = ConfigScope(func)
        self._add_named_config(func.__name__, config_scope)
        return config_scope

        Decorator to turn a function into a named configuration.

        See :ref:`named_configurations`.
        
sacred/ingredient.py