code: def read_corpus(path, max_size):
      with codecs.open(path, encoding="utf-8") as f:
          trees = []
          for line in f:
              line = line.strip()
              tree = SexpParser(line).parse()
              trees.append(tree)
              if max_size and len(trees) >= max_size:
                  break
  
      return trees
  
imports: import codecs
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: read_corpus(path, max_size) and returns: trees