Write a Python function that processes a list of records and removes duplicates.
Define a record as a dictionary with string keys and hashable values. Return a new list containing only the first occurrence of each distinct record, preserving input order. Records with the same key-value pairs are duplicates even if their key insertion order differs.
Function signature: def remove_duplicates(records):
Input is a list of dictionaries. Output is a list of dictionaries.
def remove_duplicates(records):