code: def parse_next_version(version: Text) -> Version:
      """Find the next version as a proper semantic version string."""
      if version == "major":
          return Version(get_current_version()).next_major()
      elif version == "minor":
          return Version(get_current_version()).next_minor()
      elif version == "micro":
          return Version(get_current_version()).next_micro()
      elif version == "alpha":
          return Version(get_current_version()).next_alpha()
      elif version == "rc":
          return Version(get_current_version()).next_release_candidate()
      elif is_valid_version(version):
          return Version(version)
      else:
          raise Exception(
              f"Invalid version number '{cmdline_args.next_version}'."
          )
  
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 19 for calling a global function with example usage: parse_next_version(version) and returns: Version, Version, Version, Version, Version, Version