code: def generate_mixes_random_examples(sourceid_to_exids, num_mixes, rs):
      # Generate 5x the number of mixes requested. We'll dedup them later, so
      # this helps increase the chance we'll end up with as many as requested.
      # This isn't guaranteed to always work, but it almost always will and is
      # easier than trying to generate every possible mix and sampling from that
      # since the numbers blow up pretty quickly.
      mixes = zip(
          *[
              rs.choice(k, num_mixes * 5, replace=True).tolist()
              for k in sourceid_to_exids.values()
          ]
      )
      return _dedup_mixes(mixes)
  
imports: import collections
  import copy
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: generate_mixes_random_examples(sourceid_to_exids, num_mixes, rs) and returns: _dedup_mixes