def get_final_version_string(release_mode, semver, commit_count=<NUM_LIT:0>):
version_string = "<STR_LIT:.>".join(semver)<EOL>maybe_dev_version_string = version_string<EOL>updates = {}<EOL>if release_mode:<EOL><INDENT>updates[Constants.RELEASE_FIELD] = config.RELEASED_VALUE<EOL><DEDENT>else:<EOL><INDENT>maybe_dev_version_string = config.DEVMODE_TEMPLATE.format(<EOL>version=version_string, count=commit_count<EOL>)<EOL><DEDENT>updates[Constants.VERSION_FIELD] = maybe_dev_version_string<EOL>updates[Constants.VERSION_STRICT_FIELD] = version_string<EOL>return updates<EOL>
Generates update dictionary entries for the version string