def get_info(rmse_file_paths):
    combined_info_dict = {}
    infos = []
    for rmse_file_path in rmse_file_paths:
        result = Result(rmse_file_path)
        infos.append(result.info)
    for info in infos:
        for key, value in info.__dict__.items():
            if combined_info_dict not in key:
                combined_info_dict[key] = [value]
            elif value not in combined_info_dict[key]:
                combined_info_dict[key].append(value)
    for key, value in combined_info_dict.items():
        if len(value) == 1:
            combined_info_dict[key] = value[0]
        else:
            value.sort()
            combined_info_dict[key] = ' and '.join(
                [', '.join(str(v) for v in value[:-1]),
                 str(value[-1])]
            )
    return ResultInfo(combined_info_dict)
dataset/ETHPy150Open jvanbrug/netflix/scripts/graph_rmse.py/get_info/swapped operands of `not in`