def _contains_atom(example, atoms, get_atoms_fn):
  """Returns True if example contains any atom in atoms."""
  example_atoms = get_atoms_fn(example)
  for example_atom in example_atoms:
    if example_atom in atoms:
      return True
  return False
Returns True if example contains any atom in atoms.
language/compgen/nqg/tasks/mcd_utils.py