code: def test_missing_close_parens():
      """
      Test the unclosed error condition
      """
      text = "(Foo) \n (Bar \n zzz"
      try:
          trees = tree_reader.read_trees(text)
          raise AssertionError("Expected an exception")
      except UnclosedTreeError as e:
          assert e.line_num == 1
  
file_path: stanza/stanza/tests/constituency/test_tree_reader.py
imports: import pytest
  from stanza.models.constituency import tree_reader
  from stanza.models.constituency.tree_reader import MixedTreeError, UnclosedTreeError, UnlabeledTreeError
  from stanza.tests import *
label_desc: Use image node_id 6 for calling a global function with example usage: test_missing_close_parens() without return types