I think I have seen this similar type of tree in the Philippines. In the Philippines it's called ipil-ipil same bean pods green seeds then turns brown. I don't remember eating it though.
It has high protein content too but has a certain acid so I don't think I'll let my cows eat it when we get to that point in our farm life :D
There are many trees that have compound leaves and bean pods. I think most of them are nitrogen fixing but not all of them are edible.