code: def filter_data(data, idx):
      data_filtered = []
      for sentence in data:
          flag = True
          for token in sentence:
              if token[idx] is None:
                  flag = False
          if flag:
              data_filtered.append(sentence)
      return data_filtered
  
file_path: stanza/stanza/models/pos/xpos_vocab_utils.py
imports: from collections import namedtuple
  from enum import Enum
  import logging
  import os
  from stanza.models.common.vocab import VOCAB_PREFIX
  from stanza.models.pos.vocab import XPOSVocab, WordVocab
label_desc: Use image node_id 1 for calling a global function with example usage: filter_data(data, idx) and returns: data_filtered