A most interesting species of Solanum. Can you see why they are called Cow’s Udder, among other similarly focused names? As in most nightshades, the fruit are poisonous. They do have medicinal uses, and in Trinidad one use is to treat athlete’s foot.
The lowest photo obviously shows the inside of the pod and the plant’s seeds.