What is the use of the "open" function in Python?