def config_get(config, *path, default=None):
    """Get a configuration option following a path through the config

    Example usage:

        >>> config_get(config,
                       'problem', 'problem_type_details', 'scorer',
                       default='accuracy')

    Args:
        config (dict): config dict
        *path (list[str]): List of config sections and options to follow.
        default (default=None): A default value to return in the case that
            the option does not exist.
    """
    o = object()
    result = get_in(config, path, default=o)
    if result is not o:
        return result
    else:
        return default
def config_get ( config , * path , default = None ) : o = object ( ) result = get_in ( config , path , default = o ) if result is not o : return result else : return default
Get a configuration option following a path through the config

    Example usage:

        >>> config_get(config,
                       'problem', 'problem_type_details', 'scorer',
                       default='accuracy')

    Args:
        config (dict): config dict
        *path (list[str]): List of config sections and options to follow.
        default (default=None): A default value to return in the case that
            the option does not exist.