def get_normalized_term(term_id: str, equivalents: list, namespace_targets: dict) -> str:
if equivalents and len(equivalents) > <NUM_LIT:0>:<EOL><INDENT>for start_ns in namespace_targets:<EOL><INDENT>if re.match(start_ns, term_id):<EOL><INDENT>for target_ns in namespace_targets[start_ns]:<EOL><INDENT>for e in equivalents:<EOL><INDENT>if e and target_ns in e["<STR_LIT>"] and e["<STR_LIT>"]:<EOL><INDENT>normalized_term = e["<STR_LIT>"]<EOL>return normalized_term<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>return term_id<EOL>
Get normalized term