def METHOD_NAME(self):
    """ for backwards compatibility """
    try:
        cur, entering = next(self)
        return {
            'entering': entering,
            'node': cur,
        }
    except StopIteration:
        return None