Does `index_add_` work with repeated indexes?

In this answer, @colesbury states:

Most other in-place indexing functions (like index_add_) have undefined behavior for duplicate indices.

Is this still the case?

In my test, it worked fine. Can it be relied upon or does it depend on other factors?

The documentation is quiet about this.

I would rely on the posted comment as also given here, since this undefined behavior in index_add matches numpy’s behavior for indexing.