code: def regen(version: str) -> None:
      """Call regendoc tool to update examples and pytest output in the docs."""
      print(f"{Fore.CYAN}[generate.regen] {Fore.RESET}Updating docs")
      check_call(
          ["tox", "-e", "regen"],
          env={
              **os.environ,
              "SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST": version,
          },
      )
  
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 2 for calling a global function with example usage: regen(version) without return types