def METHOD_NAME(ir: IR, errors: List[Tuple[str, str]]):
    flattened_ir_errors: List[str] = []
    for key in ir.aconf.errors.keys():
        for error in ir.aconf.errors[key]:
            flattened_ir_errors.append(f"{key}: {error['error']}")
    flattened_wanted_errors: List[str] = [f"{key}: {error}" for key, error in errors]
    assert sorted(flattened_ir_errors) == sorted(flattened_wanted_errors)