<doocs>0671.Second Minimum Node In a Binary Tree_1.py
def dfs(root, val):
    if root:
        dfs(root.left, val)
        dfs(root.right, val)
        nonlocal ans
        if root.val > val:
            ans = root.val if ans == -1 else min(ans, root.val)
def sample_funcname ( var_1 , val ) :
    if var_1 :
        var_0 ( var_1.left , val )
        var_0 ( var_1.right , val )
        nonlocal var_5
        if var_1.val > val :
            var_5 = var_1.val if var_5 == - 1 else min ( var_5 , var_1.val )
