suppose you have two bar magnets. Only one of the magnets has the north and south poles labeled. How would you determine which was the north and which was the south pole on the unlabeled magnet?
if you put one pole on the unlabeled magnet towards the north labeled pole on the other magnet and it moves away, it is north. If it moves together, then it is south