code: def changelog(version: str, write_out: bool = False) -> None:
      addopts = [] if write_out else ["--draft"]
      check_call(["towncrier", "--yes", "--version", version] + addopts)
  
file_path: pytest/scripts/release.py
imports: import argparse
  import os
  from pathlib import Path
  from subprocess import call
  from subprocess import check_call
  from subprocess import check_output
  from colorama import Fore
  from colorama import init
label_desc: Use image node_id 6 for calling a global function with example usage: changelog(version, write_out) without return types