code: def _get_arch() -> str:
      architecture = platform.machine().lower()
  
      # Map the architecture names to Node.js equivalents
      arch_map = {
          "x86_64": "x64",
          "amd64": "x64",
          "armv7l": "arm",
          "aarch64": "arm64",
      }
  
      return arch_map.get(architecture, architecture)
  
imports: from __future__ import annotations
  import os
  import sys
  import json
  import shutil
  import tarfile
  import platform
  import subprocess
  from typing import TYPE_CHECKING, List
  from pathlib import Path
  from argparse import ArgumentParser
  import httpx
  from .._errors import CLIError, SilentCLIError
  from .._models import BaseModel
label_desc: Use image node_id 7 for calling a global function with example usage: _get_arch() and returns: arch_map