@staticmethod<EOL><INDENT>def load(file_obj):<DEDENT>
cur_elt = []<EOL>for line in file_obj:<EOL><INDENT>cur_elt.append(line)<EOL>if line == '<STR_LIT:\n>':<EOL><INDENT>pickled_elt_str = '<STR_LIT>'.join(cur_elt)<EOL>cur_elt = []<EOL>try:<EOL><INDENT>elt = loads(pickled_elt_str)<EOL><DEDENT>except ValueError:<EOL><INDENT>continue<EOL><DEDENT>yield elt<EOL><DEDENT><DEDENT>
load contents from file_obj, returning a generator that yields one
element at a time