<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def make_tex_table(inputlist, outputfilename, fmt=None, **kwargs):
 """ Do make_tex_table and pass all arguments args: inputlist: list outputfilename: string fmt: dictionary key: integer column index starting with 0 values: string format string. eg "{:g}" **kwargs: nonestring: string string when objecttype is None """

        outputfilepath = FILEPATHSTR.format(
            root_dir=ROOT_DIR, os_sep=os.sep, os_extsep=os.extsep,
            name=outputfilename,
            folder=PURPOSE.get("tables").get("folder", "tables"),
            ext=PURPOSE.get("tables").get("extension", "tex")
        )
        table.make_tex_table(inputlist, open(outputfilepath, 'wb'), fmt=fmt,
                             close=kwargs.get("close", True), **kwargs)