code: def download_toolchain():
      """
      Download and extract node.
      """
      if Path("toolchain/node", node_executable_in_tarball).is_file():
          return
  
      Path("toolchain").mkdir(exist_ok=True)
      import requests  # place it here so setup.py can install it before importing
  
      _print(f"Downloading node.js from {node_download_url}")
      resp = requests.get(node_download_url)
      resp.raise_for_status()
      _print("Extracting node.js")
      tarball = node_extractor(resp.content)
      tarball.extractall("toolchain")
      shutil.rmtree("toolchain/node", ignore_errors=True)
      Path("toolchain", node_spec).rename("toolchain/node")
  
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 6 for calling a global function with example usage: download_toolchain() without return types