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