code: def next_version(args: argparse.Namespace) -> Version:
      """Take cmdline args or ask the user for the next version and return semver."""
      return parse_next_version(args.next_version or ask_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 20 for calling a global function with example usage: next_version(args) and returns: parse_next_version