Howdy James. where is this plant located? In USA or other?
What Zone? Near water? Shade or sun?
Are the leaves in the picture part of the plant you are wanting to identify?
Can you tell us more about it.
I think that because the seeds are really tiny inside that bean pod looking thing.. All the legumes I've seen have larger beans within them. The seed within looks like radish seed but a wee bit smaller. Sorry i dropped the seeds when i opened it into my yard so i couldn't take pictures of them.
This plant is located in Central Florida, full Sun, the leaves are in fact part of the plant.