<garvit244>117_2.py
def getNext( node):
    node = node.next
    while node:
        if node.left:
            return node.left
        if node.right:
            return node.right
        node = node.next
    return None
def sample_funcname ( var_0 ) :
    var_0 = var_0.next
    while var_0 :
        if var_0.left :
            return var_0.left
        if var_0.right :
            return var_0.right
        var_0 = var_0.next
    return None
