code: def candidates_gen():
      candidate_set = set([])
      for _ in range(10**5):
          block = [
              (
                  (random.randint(0, 1000), "a"),
                  (random.randint(0, 1000), "b"),
              )
          ]
          for candidate in block:
              pair_ids = (candidate[0][0], candidate[1][0])
              if pair_ids not in candidate_set:
                  yield candidate
                  candidate_set.add(pair_ids)
      del candidate_set
  
imports: import random
  import dedupe.core
  import dedupe.dedupe
label_desc: Use image node_id 1 for calling a global function with example usage: candidates_gen() without return types