code: def generate_changelog(version: Version) -> None:
      """Call tonwcrier and create a changelog from all available changelog entries."""
      check_call(
          ["towncrier", "build", "--yes", "--version", str(version)],
          cwd=str(project_root()),
      )
  
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 21 for calling a global function with example usage: generate_changelog(version) without return types