<doocs>0872.Leaf-Similar Trees_1.py
def dfs(root):
    if root is None:
        return []
    ans = dfs(root.left) + dfs(root.right)
    return ans or [root.val]
def sample_funcname ( var_1 ) :
    if var_1 is None :
        return [ ]
    var_5 = var_0 ( var_1.left ) + var_0 ( var_1.right )
    return var_5 or [ var_1.val ]
