human
Write me a Python function to 3 iterator that has next iterator.
assistant
Here is a Python function to 3 iterator has next iterator

import itertools

def has_next(iterator):
    """Returns True if the iterator has next."""
    try:
        next(iterator)
        return True
    except StopIteration:
        return False

# Enter the iterator
iterator = iter([1,2,3])

# Calling the function
print((has_next(iterator)))

#Example Output
# True

#Remember to inspect code for bugs.