The correct spelling is “Hem-hem”, not “heminey.”
It’s the sound effect Professor Flitwick uses to clear his throat before lessons or stories.