def process_documentline(line, nanopubs_metadata):
matches = re.match('<STR_LIT>', line)<EOL>key = matches.group(<NUM_LIT:1>)<EOL>val = matches.group(<NUM_LIT:2>)<EOL>nanopubs_metadata[key] = val<EOL>return nanopubs_metadata<EOL>
Process SET DOCUMENT line in BEL script