code: def clean():
      """
      Remove TypeScript-related intermediate files.
      Python intermediate files are not touched here.
      """
      shutil.rmtree("nni_node", ignore_errors=True)
      shutil.rmtree("toolchain", ignore_errors=True)
  
      for file_or_dir in generated_files:
          path = Path(file_or_dir)
          if path.is_symlink() or path.is_file():
              path.unlink()
          elif path.is_dir():
              shutil.rmtree(path)
  
imports: from io import BytesIO
  import json
  import os
  from pathlib import Path
  import platform
  import shutil
  import subprocess
  import sys
  import tarfile
  import traceback
  from zipfile import ZipFile
label_desc: Use image node_id 5 for calling a global function with example usage: clean() without return types