<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def all_settings(self, uppercase_keys=False):
 """Return all settings as a `dict`."""

        d = {}

        for k in self.all_keys(uppercase_keys):
            d[k] = self.get(k)

        return d