docs: def get_final_version_string(release_mode, semver, commit_count=0):
      """Generates update dictionary entries for the version string"""
      version_string = ".".join(semver)
      maybe_dev_version_string = version_string
      updates = {}
      if release_mode:
          # in production, we have something like `1.2.3`, as well as a flag e.g. PRODUCTION=True
          updates[Constants.RELEASE_FIELD] = config.RELEASED_VALUE
      else:
          # in dev mode, we have a dev marker e.g. `1.2.3.dev678`
          maybe_dev_version_string = config.DEVMODE_TEMPLATE.format(
              version=version_string, count=commit_count
          )
  
      # make available all components of the semantic version including the full string
      updates[Constants.VERSION_FIELD] = maybe_dev_version_string
      updates[Constants.VERSION_STRICT_FIELD] = version_string
      return updates