Torch.mode - what does indices hold

The indices seem to point to any index containing the mode value. Based on some runs the last index seems to be used, but I guess there is no guarantee to it and any index of the mode value could be returned:

x = torch.zeros(2, 5)
torch.mode(x)
> torch.return_types.mode(
  values=tensor([0., 0.]),
  indices=tensor([4, 4]))