code: def word_sequence_missing_words(tree):
      """
      Check if the word sequence is missing words
  
      Some trees skip labels, such as
        (s (fcl (pron-pers s16817_1) (v-fin s16817_2) (prp s16817_3) (pp (prp s16817_5) (par (n s16817_6) (conj-c s16817_7) (n s16817_8))) (pu s16817_9)))
      but in these cases, the word is present in the original text and simply not attached to the tree
      """
      words = tree.leaf_labels()
      indices = [int(w.split("_")[1]) for w in words]
      indices = sorted(indices)
      for idx, label in enumerate(indices):
          if label != idx + 1:
              return True
      return False
  
file_path: stanza/stanza/utils/datasets/constituency/convert_arboretum.py
imports: from collections import namedtuple
  import io
  import xml.etree.ElementTree
  from tqdm import tqdm
  from stanza.models.constituency.parse_tree import Tree
  from stanza.server import tsurgeon
label_desc: Use image node_id 6 for calling a global function with example usage: word_sequence_missing_words(tree) and returns: False, True