def METHOD_NAME(filename):
    file_conflicts: Dict[str, str] = defaultdict()
    func_attrs: Dict[str, List[str]] = defaultdict(list)
    with open(filename, "r") as curr_file:
        all_lines = curr_file.readlines()
        for line in all_lines:
            # This skips all non definition lines
            if line[0] != "f":
                continue
            fname, val = line[4:].split("=")
            val = val.strip()
            if val == UNINST:
                continue
            if fname in func_attrs:
                if val not in func_attrs[fname]:
                    file_conflicts[fname] = f"Multiple attributes set for {fname}"
                # Val is not value or discard, and we have seen a value before.
                else:
                    file_conflicts[fname] = f"Redefinition of attribute for {fname}"
            else:
                func_attrs[fname].append(val)
    return file_conflicts, func_attrs