def parse_ftype(input_file):
if input_file.endswith("<STR_LIT>"):<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>elif input_file.endswith("<STR_LIT>") orinput_file.endswith("<STR_LIT>") orinput_file.endswith("<STR_LIT>") orinput_file.endswith("<STR_LIT>"):<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>raise TypeError("<STR_LIT>"<EOL>"<STR_LIT>" + input_file + "<STR_LIT>")<EOL><DEDENT>
Checks determine filetype from extension.

:param str input_file: String to check.
:return str: filetype (extension without dot prefix)
:raises TypeError: if file does not appear of a supported type