def parse_config(filename, header):

    parser = SettingParser(filename)
    if parser.header != header:
        header_value = parser.header or ''
        raise ParseError(u"Unexpected header '{0}', expecting '{1}'"
                         .format(common.from_utf8(header_value), header))

    return parser
Parses the provided filename and returns ``SettingParser`` if the
dataset/ETHPy150Open xtrementl/focus/focus/parser/__init__.py/parse_config