code: def path_sum(root, sum):
      if root is None:
          return []
      res = []
      dfs(root, sum, [], res)
      return res
  
label_desc: Use image node_id 1 for calling a global function with example usage: path_sum(root, sum) and returns: res, list