def _examples_compatible(
    example1: WinoDictExample,
    example2: WinoDictExample,
) -> bool:
  """Assesses whether to exampels are compatible for in-context learning."""
  if example1.get_id() == example2.get_id():
    return False
  elif example1.answer1.fake_root == example2.answer1.fake_root:
    return False
  elif example1.answer2.fake_root == example2.answer2.fake_root:
    return False
  return True
Assesses whether to exampels are compatible for in-context learning.
language/wino_dict/utils.py