code: def sentence_subtrees(sentence_idx, trees_pointers, trees_phrases):
      tree_pointers = trees_pointers[sentence_idx]
      tree_phrases = trees_phrases[sentence_idx]
      tree = SSTTree(tree_pointers, tree_phrases)
      return tree.subtrees()
  
imports: import os
  from typing import List, Optional, Set
  import pandas
  from ludwig.datasets.dataset_config import DatasetConfig
  from ludwig.datasets.loaders.dataset_loader import DatasetLoader
label_desc: Use image node_id 6 for calling a global function with example usage: sentence_subtrees(sentence_idx, trees_pointers, trees_phrases) and returns: tree