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)
  
file_path: rasa/scripts/prepare_nightly_release.py
imports: import argparse
  import os
  import sys
  import toml
  from pathlib import Path
  from typing import Text
  from pep440_version_utils import Version, is_valid_version
label_desc: Use image node_id 6 for calling a global function with example usage: next_version(args) and returns: parse_next_version