// Check that the different feature files have the same IDs.
// To do this, make a sorted tuple of unique IDs for each feature file,
// and then make sure they are all the same by making sure the set is size 1.
if len(set([tuple(sorted(set([ex["id"] for ex in examples])))
for examples in example_lists])) != 1:
raise ValueError("The sets of example IDs in two feature files do not \
match")
After Change
// Check that the different feature files have the same IDs.
// To do this, make a sorted tuple of unique IDs for each feature file,
// and then make sure they are all the same by making sure the set is size 1.
if len({tuple(sorted({ex["id"] for ex in examples}))
for examples in example_list}) != 1:
raise ValueError("The sets of example IDs in two feature files do not" +
"match")