@staticmethod<EOL><INDENT>def _get_base_url(base_url, api, version):<DEDENT>
format_args = {}<EOL>if "<STR_LIT>" in base_url:<EOL><INDENT>if api == "<STR_LIT>":<EOL><INDENT>base_url = base_url.replace('<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>format_args['<STR_LIT>'] = api<EOL><DEDENT><DEDENT>if "<STR_LIT>" in base_url:<EOL><INDENT>if version == "<STR_LIT>":<EOL><INDENT>base_url = base_url.replace('<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>format_args['<STR_LIT:version>'] = version<EOL><DEDENT><DEDENT>return base_url.format(api=api, version=version)<EOL>
create the base url for the api

Parameters
----------
base_url : str
    format of the base_url using {api} and {version}
api : str
    name of the api to use
version : str
    version of the api

Returns
-------
str
    the base url of the api you want to use