comefrom: <garvit244>113_1.py
code: def dfs(root, curr_sum, sum, path, result):
      if not root:
          return
      
      curr_sum += root.val
      if curr_sum == sum and not root.left and not root.right:
          result.append(path + [root.val])
          return
      
      if root.left:
          dfs(root.left, curr_sum, sum, path + [root.val], result)
      if root.right:
          dfs(root.right, curr_sum, sum, path + [root.val], result)
masked: def sample_funcname ( var_1 , var_2 , var_3 , var_4 , var_5 ) :
      if not var_1 :
          return
      var_2 += var_1.val
      if var_2 == var_3 and not var_1.left and not var_1.right :
          var_5.append ( var_4 + [ var_1.val ] )
          return
      if var_1.left :
          var_0 ( var_1.left , var_2 , var_3 , var_4 + [ var_1.val ] , var_5 )
      if var_1.right :
          var_0 ( var_1.right , var_2 , var_3 , var_4 + [ var_1.val ] , var_5 )
  