code: def write_version_file(path: Text, version: Version) -> None:
      """Dump a new version into the python version file."""
  
      version_file = project_root() / path
  
      with version_file.open("w") as f:
          f.write(
              f"# this file will automatically be changed,\n"
              f"# do not add anything but the version number here!\n"
              f'__version__ = "{version}"\n'
          )
  
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 3 for calling a global function with example usage: write_version_file(path, version) without return types