code: def convert_files(
      file_list,
      new_dir,
      verbose=False,
      fix_errors=True,
      convert_brackets=False,
      updated_tagset=False,
  ):
      errors = defaultdict(list)
      for filename in file_list:
          base_name, _ = os.path.splitext(os.path.split(filename)[-1])
          new_path = os.path.join(new_dir, base_name)
          new_file_path = f"{new_path}.mrg"
          # Convert the tree and write to new_file_path
          new_errors = convert_file(
              filename,
              new_file_path,
              fix_errors,
              convert_brackets,
              updated_tagset,
          )
          for e in new_errors:
              errors[e].extend(new_errors[e])
  
      if len(errors.keys()) == 0:
          print("All errors were fixed!")
      else:
          print("Found the following errors:")
          keys = sorted(errors.keys())
          if verbose:
              for e in keys:
                  print("--------- %10s -------------" % e)
                  print("\n\n".join(errors[e]))
                  print()
              print()
          for e in keys:
              print("%s: %d" % (e, len(errors[e])))
  
file_path: stanza/stanza/utils/datasets/constituency/vtb_convert.py
imports: import argparse
  import os
  from collections import defaultdict
  from stanza.models.constituency.tree_reader import read_trees, MixedTreeError, UnlabeledTreeError
label_desc: Use image node_id 5 for calling a global function with example usage: convert_files(file_list, new_dir, verbose, fix_errors, convert_brackets, updated_tagset) without return types