code: def redact(dry_run: bool) -> None:
      tiktoken_root = Path(__file__).parent.parent
      assert tiktoken_root.name == "tiktoken"
      assert (tiktoken_root / "pyproject.toml").exists()
  
      try:
          output = subprocess.check_output(
              ["git", "ls-files"], cwd=tiktoken_root, text=True
          )
          paths = [Path(p) for p in output.splitlines()]
      except subprocess.CalledProcessError:
          paths = list(tiktoken_root.glob("**/*"))
  
      for path in paths:
          redact_file(path, dry_run=dry_run)
  
imports: import argparse
  import re
  import subprocess
  from pathlib import Path
label_desc: Use image node_id 2 for calling a global function with example usage: redact(dry_run) without return types