identify_inconsistency function

Identify inconsistencies in a dataset