code: def test_language_formatting():
      """
      Test turning the parse tree into a 'language' for GPT
      """
      text = VI_TREEBANK.split("\n")[0]
      trees = tree_reader.read_trees(text)
      trees = [t.prune_none().simplify_labels() for t in trees]
      assert len(trees) == 1
      assert str(trees[0]) == VI_TREEBANK_SIMPLE
  
      text = "{:L}".format(trees[0])
      assert text == EXPECTED_LABELED_BRACKETS
  
file_path: stanza/stanza/tests/constituency/test_vietnamese.py
imports: import os
  import tempfile
  import pytest
  from stanza.models.common import pretrain
  from stanza.models.constituency import tree_reader
  from stanza.tests.constituency.test_trainer import build_trainer
label_desc: Use image node_id 5 for calling a global function with example usage: test_language_formatting() without return types