def METHOD_NAME(path, drop_only=True, drop_conditional_assigment=True):
    """
    Gets a single config file as dict
    By putting the content of file within a "variants:" context.
    Optionally (default) also drops all instances of "only" statements,
    and optional assignments, ie:
    section_name:
       foo = bar
    since the files are evaluated individually and that can lead to an
    empty results.
    """
    lines = open(path).readlines()
    if drop_only:
        lines = [l for l in lines
                 if not re.match('^\s*only\s+', l)]
    if drop_conditional_assigment:
        lines = [l for l in lines
                 if not re.match('^\s*[a-zA-Z0-9_]+([\s,])?.*\:$', l)]
    lines.insert(0, "variants:")
    content = "\n".join(lines)
    parser = cartesian_config.Parser()
    parser.parse_string(content)
    dicts = [d for d in parser.get_dicts()]
    len_dicts = (len(dicts))
    assert len_dicts == 1
    return dicts[0]