code: def prepare_nni_node():
      """
      Create clean nni_node diretory, then copy node runtime to it.
      """
      shutil.rmtree("nni_node", ignore_errors=True)
      Path("nni_node").mkdir()
  
      Path("nni_node/__init__.py").write_text(
          '"""NNI node.js modules."""\n'
      )
  
      node_src = Path("toolchain/node", node_executable_in_tarball)
      node_dst = Path("nni_node", node_executable)
      shutil.copy(node_src, node_dst)
  
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 7 for calling a global function with example usage: prepare_nni_node() without return types