code: def _dedup_mixes(mixes):
      # Retain only mixes with unique lists of examples.
      mixes_unique_examples = [
          tuple(sorted(mix))
          for mix in mixes
          if len(set(mix)) == len(mix)
      ]
      # Retain only unique mixes.
      unique_mixes = set(mixes_unique_examples)
      return unique_mixes
  
imports: import collections
  import copy
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: _dedup_mixes(mixes) and returns: unique_mixes