human
Write me a Python function to iterate in next next next next.
assistant
Here is a Python function to iterate in the next next next step

import itertools

def has_next(iterator):
    """
    >>> iterator = iter([1, 2, 3])
    >>> has_next(iterator)
    True
    >>> iterator = iter([1, 2, 3, 4])
    >>> has_next(iterator)
    False
    """
    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.