This is a Jabuticaba or Brazilian Grape Tree. It is native to Brazil, Argentina, Paraguay, and Bolivia. It does not use branches to grow fruits. It grows fruits (and flowers) directly on the trunk. The fruit can be eaten raw or be used to make jellies and drinks (plain juice or wine).
I could never imagine such a tree like this existed. I think this tree looks like something on an alien planet, and I am surprised I’ve never seen it’s like in a sci-fi movie. I have pictures of this tree bookmarked so I can remind myself that the world contains wondrous things.