<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_format(self, format):
 """ Pick the correct default format. """

        if self.options.format:
            self.format = self.options.format
        else:
            self.format = \
                self.config["default_format_" + format]