<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def config_dict(config):
 """ Given a Sphinx config object, return a dictionary of config values. """

    return dict(
        (key, getattr(config, key))
        for key in config.values
    )