def _assert_labels_equal(labels_a, labels_b, ignore_pos=False):
 for (label_a, label_b) in zip(labels_a, labels_b):
  assert_array_equal(label_a.vertices, label_b.vertices)
  assert_true((label_a.name == label_b.name))
  assert_true((label_a.hemi == label_b.hemi))
  if (not ignore_pos):
   assert_array_equal(label_a.pos, label_b.pos)

def _assert_labels_equal ( labels_a , labels_b , ignore_pos = False ) : for ( label_a , label_b ) in zip ( labels_a , labels_b ) : assert_array_equal ( label_a . vertices , label_b . vertices ) assert_true ( ( label_a . name == label_b . name ) ) assert_true ( ( label_a . hemi == label_b . hemi ) ) if ( not ignore_pos ) : assert_array_equal ( label_a . pos , label_b . pos )
make sure two sets of labels are equal .