code: def get_governor_word(
      word: Word, sentence: list[Word]
  ) -> Optional[Word]:
      """Submit a ``Word`` and a sentence (being a list of ``Word``)
      and then return the governing word.
      """
      governor: int = word.governor
      if governor == -1:
          return None
      # Note: We need to remove 1 to get the 0-based index of `sentence.words`
      try:
          return sentence[word.governor]
      except IndexError:
          print(word)
  
imports: from typing import Any, List, Optional
  from cltk.core.data_types import Word
label_desc: Use image node_id 1 for calling a global function with example usage: get_governor_word(word, sentence) and returns: None, sentence