def tokens_equal(x, y):
 xtup = ensure_tuple(x)
 ytup = ensure_tuple(y)
 return (xtup == ytup)

def tokens_equal ( x , y ) : xtup = ensure_tuple ( x ) ytup = ensure_tuple ( y ) return ( xtup == ytup )
tests whether two token are equal .