code: def fix_gov_indexes(merged_punct_sentence, sentence):
      for merged_token in merged_punct_sentence:
          tok_gov = merged_token["gov"]
          if tok_gov == -1:  # gov is root
              merged_token["gov"] = -1
          else:
              orig_gov = sentence[tok_gov]
              correct_index = find_correct_index(
                  orig_gov, merged_punct_sentence
              )
              merged_token["gov"] = correct_index
  
imports: import json
  from nlp_architect.utils.io import validate
label_desc: Use image node_id 3 for calling a global function with example usage: fix_gov_indexes(merged_punct_sentence, sentence) without return types