def file_name_increase(file_name, file_location):
add_one = <NUM_LIT:1><EOL>file_name_temp = file_name<EOL>while verify_file_exists(file_name_temp, file_location):<EOL><INDENT>try:<EOL><INDENT>name, file_extension = file_name.split('<STR_LIT:.>')<EOL>file_name_temp = '<STR_LIT>' % (name, add_one, file_extension)<EOL><DEDENT>except Exception as e:<EOL><INDENT>LOGGER.critical('<STR_LIT>'.format(error=e))<EOL>name = file_name<EOL>file_name_temp = '<STR_LIT>' % (name, add_one)<EOL><DEDENT>add_one += <NUM_LIT:1><EOL><DEDENT>file_name = file_name_temp<EOL>return file_name<EOL>
Function to increase a filename by a number 1
Args:
    file_name: The name of file to check
    file_location: The location of the file, derive from the os module

Returns: returns a good filename.