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