The constable had approached Natalie Dyce after she shouted racial abuse at a group of people on the street, Inverness Sheriff Court was told.