Find duplicates in xs based on some criteria.
Find duplicates in xs based on some criteria.
type of
where to look for duplicates
the criteria used to determine duplicates.
If an error occurred, provide the error message; otherwise, return None for no error.
If an error occurred, provide the error message; otherwise, return None for no error.