code: def __iter__(self):
      while True:
          pick_label, pick_other = self.rng.choice(
              10, size=2, replace=False
          )
          yield [
              self.pick(pick_label),
              self.pick(pick_label),
              self.pick(pick_other),
          ]
  
file_path: tensorpack/examples/SimilarityLearning/embedding_data.py
imports: import numpy
  from tensorpack.dataflow import BatchData, dataset
label_desc: Use image node_id 1 for calling the MnistTriplets obj's underlying member method code with example usage: obj.__iter__() without return types