def METHOD_NAME(self, name, default=UNSET):
    """
    Return a configuration value by name, with an optional default.
    """
    if (default is not UNSET) and (name not in self.__config):
        return default
    else:
        return self.__config[name]