code: def _npm(path, *args):
      _print("npm " + " ".join(args) + f" (path: {path})")
      if os.environ.get("GLOBAL_TOOLCHAIN"):
          subprocess.run(["npm", *args], cwd=path, check=True)
      else:
          subprocess.run(
              [str(_npm_path), *args],
              cwd=path,
              check=True,
              env=_npm_env,
          )
  
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 11 for calling a global function with example usage: _npm(path) without return types