code: def read_tokens_file(token_file):
      """
      Returns a list of list of tokens
  
      Each sentence is a list of tokens
      """
      sentences = []
      current_sentence = []
      with open(token_file, encoding="utf-8") as fin:
          for line in fin:
              line = line.strip()
              if not line:
                  if current_sentence:
                      sentences.append(current_sentence)
                      current_sentence = []
              else:
                  current_sentence.append(line)
          if current_sentence:
              sentences.append(current_sentence)
  
      return sentences
  
file_path: stanza/stanza/utils/datasets/tokenization/convert_text_files.py
imports: import argparse
  import os
  import random
  from stanza.models.tokenization.utils import match_tokens_with_text
  import stanza.utils.datasets.common
label_desc: Use image node_id 1 for calling a global function with example usage: read_tokens_file(token_file) and returns: sentences