<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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