What is the use of the "eq" method in Python?