<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(self, path, postmap=None, **params):
 """ Return the running configuration which almost always matches the configuration in the config file. During a reconfiguration, it may be transitioning to the new state, in which case it will be different to the pending config. Neither the running or pending configurations necessarily match the operational state, either because a task has exited and not yet restarted, or because a task control has been changed via the management interface. Supports standard options. """


        q = httpd.merge_query(path, postmap)

        ans = self._legion._config_running
        if not ans: ans = {}

        return self._format(ans, q)