Write a program to summarize data, remove duplicates, and generate a report or table.
Implement summarize_records(records), where each record is a dictionary with a string category and integer value. Remove exact duplicate records, then return one summary dictionary per category containing the category name, number of unique records, and sum of their values, ordered lexicographically by category.
def summarize_records(records):