def fetch_mim_files(api_key, mim2genes=False, mimtitles=False, morbidmap=False, genemap2=False):
LOG.info("<STR_LIT>")<EOL>mim2genes_url =  '<STR_LIT>'<EOL>mimtitles_url= '<STR_LIT>'.format(api_key)<EOL>morbidmap_url = '<STR_LIT>'.format(api_key)<EOL>genemap2_url =  '<STR_LIT>'.format(api_key)<EOL>mim_files = {}<EOL>mim_urls = {}<EOL>if mim2genes is True:<EOL><INDENT>mim_urls['<STR_LIT>'] = mim2genes_url<EOL><DEDENT>if mimtitles is True:<EOL><INDENT>mim_urls['<STR_LIT>'] = mimtitles_url<EOL><DEDENT>if morbidmap is True:<EOL><INDENT>mim_urls['<STR_LIT>'] = morbidmap_url<EOL><DEDENT>if genemap2 is True:<EOL><INDENT>mim_urls['<STR_LIT>'] = genemap2_url<EOL><DEDENT>for file_name in mim_urls:<EOL><INDENT>url = mim_urls[file_name]<EOL>mim_files[file_name] = fetch_resource(url)<EOL><DEDENT>return mim_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