def fetch_hpo_files(hpogenes=False, hpoterms=False, phenotype_to_terms=False, hpodisease=False):
LOG.info("<STR_LIT>")<EOL>base_url = ('<STR_LIT>'<EOL>'<STR_LIT>')<EOL>hpogenes_url =  base_url.format('<STR_LIT>')<EOL>hpoterms_url= base_url.format('<STR_LIT>')<EOL>hpo_phenotype_to_terms_url = base_url.format('<STR_LIT>')<EOL>hpodisease_url = base_url.format('<STR_LIT>')<EOL>hpo_files = {}<EOL>hpo_urls = {}<EOL>if hpogenes is True:<EOL><INDENT>hpo_urls['<STR_LIT>'] = hpogenes_url<EOL><DEDENT>if hpoterms is True:<EOL><INDENT>hpo_urls['<STR_LIT>'] = hpoterms_url<EOL><DEDENT>if phenotype_to_terms is True:<EOL><INDENT>hpo_urls['<STR_LIT>'] = hpo_phenotype_to_terms_url<EOL><DEDENT>if hpodisease is True:<EOL><INDENT>hpo_urls['<STR_LIT>'] = hpodisease_url<EOL><DEDENT>for file_name in hpo_urls:<EOL><INDENT>url = hpo_urls[file_name]<EOL>hpo_files[file_name] = request_file(url)<EOL><DEDENT>return hpo_files<EOL>
Fetch the necessary mim files using a api key

    Args:
        api_key(str): A api key necessary to fetch mim data

    Returns:
        mim_files(dict): A dictionary with the neccesary files