code: def confirm_version(version: Version) -> bool:
      """Allow the user to confirm the version number."""
  
      if str(version) in git_existing_tags():
          confirmed = questionary.confirm(
              f"Tag with version '{version}' already exists, overwrite?",
              default=False,
          ).ask()
      else:
          confirmed = questionary.confirm(
              f"Current version is '{get_current_version()}. "
              f"Is the next version '{version}' correct ?",
              default=True,
          ).ask()
      if confirmed:
          return True
      else:
          print("Aborting.")
          sys.exit(1)
  
imports: import argparse
  import os
  import re
  import sys
  from pathlib import Path
  from subprocess import CalledProcessError, check_call, check_output
  from typing import Text, Set
  import questionary
  import toml
  from pep440_version_utils import Version, is_valid_version
label_desc: Use image node_id 8 for calling a global function with example usage: confirm_version(version) and returns: True