def METHOD_NAME(iterator, default=_default_value_next):
    try:
        return iterator.METHOD_NAME()
    except StopIteration:
        if default is _default_value_next:
            raise
        return default