comefrom: <doocs>1448.Count Good Nodes in Binary Tree_1.py
code: def dfs(root, mx):
      if root is None:
          return
      nonlocal ans
      if mx <= root.val:
          ans += 1
          mx = root.val
      dfs(root.left, mx)
      dfs(root.right, mx)
masked: def sample_funcname ( var_1 , var_2 ) :
      if var_1 is None :
          return
      nonlocal var_4
      if var_2 <= var_1.val :
          var_4 += 1
          var_2 = var_1.val
      var_0 ( var_1.left , var_2 )
      var_0 ( var_1.right , var_2 )
  