def get_entrez_gene_data(entrez_ids: Iterable[Union[str, int]]):
url = PUBMED_GENE_QUERY_URL.format('<STR_LIT:U+002C>'.join(str(x).strip() for x in entrez_ids))<EOL>response = requests.get(url)<EOL>tree = ElementTree.fromstring(response.content)<EOL>return {<EOL>element.attrib['<STR_LIT>']: {<EOL>'<STR_LIT>': _sanitize(element.find('<STR_LIT>').text),<EOL>'<STR_LIT:description>': element.find('<STR_LIT>').text<EOL>}<EOL>for element in tree.findall('<STR_LIT>')<EOL>}<EOL>
Get gene info from Entrez.