def orthologize_context(<EOL>orthologize_target: str, annotations: Mapping[str, Any]<EOL>) -> Mapping[str, Any]:
url = f'<STR_LIT>'<EOL>r = utils.get_url(url)<EOL>species_label = r.json().get("<STR_LIT:label>", "<STR_LIT>")<EOL>orthologized_from = {}<EOL>for idx, annotation in enumerate(annotations):<EOL><INDENT>if annotation["<STR_LIT:type>"] == "<STR_LIT>":<EOL><INDENT>orthologized_from = {"<STR_LIT:id>": annotation["<STR_LIT:id>"], "<STR_LIT:label>": annotation["<STR_LIT:label>"]}<EOL>annotations[idx] = {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:id>": orthologize_target, "<STR_LIT:label>": species_label}<EOL><DEDENT><DEDENT>if "<STR_LIT:id>" in orthologized_from:<EOL><INDENT>annotations.append(<EOL>{<EOL>"<STR_LIT:type>": "<STR_LIT>",<EOL>"<STR_LIT:id>": f'<STR_LIT>',<EOL>"<STR_LIT:label>": f'<STR_LIT>',<EOL>}<EOL>)<EOL><DEDENT>return annotations<EOL>
Orthologize context

    Replace Species context with new orthologize target and add a annotation type of OrthologizedFrom