code: def collect_trees_s(root):
      if root.tag == "S":
          yield root.text, root.attrib["ID"]
  
      for child in root:
          for tree in collect_trees_s(child):
              yield tree
  
file_path: stanza/stanza/utils/datasets/constituency/convert_ctb.py
imports: from enum import Enum
  import glob
  import os
  import re
  import xml.etree.ElementTree
  from stanza.models.constituency import tree_reader
  from stanza.utils.datasets.constituency.utils import write_dataset
  from stanza.utils.get_tqdm import get_tqdm
label_desc: Use image node_id 3 for calling a global function with example usage: collect_trees_s(root) without return types