code: def read_files(filenames, conversion, log):
      trees = []
      for filename in filenames:
          with open(filename, encoding="utf-8") as fin:
              text = fin.read()
          try:
              tree = conversion(text)
              if tree is not None:
                  trees.append(tree)
          except ValueError as e:
              if log:
                  print(
                      "-----------------\nFound an error in {}: {} Original text: {}".format(
                          filename, e, text
                      )
                  )
      return trees
  
file_path: stanza/stanza/utils/datasets/constituency/convert_starlang.py
imports: import os
  import re
  from tqdm import tqdm
  from stanza.models.constituency import parse_tree
  from stanza.models.constituency import tree_reader
label_desc: Use image node_id 2 for calling a global function with example usage: read_files(filenames, conversion, log) and returns: trees