def _check_equality(tuple1, tuple2):
 list1 = list(tuple1)
 list2 = list(tuple2)
 list1.sort()
 list2.sort()
 return (list1 == list2)

def _check_equality ( tuple1 , tuple2 ) : list1 = list ( tuple1 ) list2 = list ( tuple2 ) list1 . sort ( ) list2 . sort ( ) return ( list1 == list2 )
return true if tuples of multimolecules are equal .