code: def remove_terminals(tree):
      words = tree.split()
      new_words = []
  
      for word in words:
          if word[0] == "(":
              new_words.append("(")
          else:
              new_words.append(word)
  
      new_tree = " ".join(new_words)
      new_tree = new_tree.replace("(", " ( ").replace(")", " ) ")
  
      return despace(new_tree.strip())
  
file_path: textflint/textflint/common/utils/overlap_templates.py
imports: import random
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: remove_terminals(tree) and returns: despace