code: def has_u_umlaut(word: str) -> bool:
      
      word_syl = s.syllabify_ssp(word)
      s_word_syl = [Syllable(syl, VOWELS, CONSONANTS) for syl in word_syl]
  
      if len(s_word_syl) == 1 and s_word_syl[-1].nucleus[0] in ["ö", "ǫ"]:
          return True
      elif len(s_word_syl) >= 2 and s_word_syl[-1].nucleus[0] == "u":
          return s_word_syl[-2].nucleus[0] in ["ö", "ǫ"]
      return False
docs: Does the word have an u-umlaut?
  
      >>> has_u_umlaut("höfn")
      True
  
      >>> has_u_umlaut("börnum")
      True
  
      >>> has_u_umlaut("barn")
      False
  
      :param word: Old Norse word
      :return: has an u-umlaut occurred?