def candidates_iter(e):
  """Yield's the candidates that should not be skipped in an example."""
  for idx, c in enumerate(e["long_answer_candidates"]):
    if should_skip_context(e, idx):
      continue
    yield idx, c
Yield's the candidates that should not be skipped in an example.
language/question_answering/bert_joint/run_nq.py