docs: def parse_config(config, key, options):
          """Parse the config with the given options."""
          conf = {}
          for source, destination, opt_type in options:
              opt_value = _get_opt(config, key, source, opt_type)
              if opt_value is not None:
                  _set_opt(conf, destination, opt_value)
          return conf