def is_iter_empty(i):
    try:
        _ = next(i)
        return False
    except StopIteration:
        return True
def is_iter_empty(i):
    try:
        _ = next(i)
        return False
    except StopIteration:
        return True