def find_cluster(stats, m1, m2):
  """Checks if m1 and m2 are in true or predited cluster."""
  in_true_cluster = False
  in_pred_cluster = False
  for cluster in stats['true_clusters'].values():
    if m1 in cluster and m2 in cluster:
      in_true_cluster = True
      break
  for cluster in stats['pred_clusters'].values():
    if m1 in cluster and m2 in cluster:
      in_pred_cluster = True
      break
  return in_true_cluster, in_pred_cluster