code: def get_arch_name(self, platform_name):
      platform_machine = platform.machine()
  
      # User-defined
      if "BLIS_ARCH" in os.environ:
          return os.environ["BLIS_ARCH"]
  
      # Lookup
      try:
          return PLATFORM_TO_ARCH[platform_name][platform_machine]
      except KeyError:
          pass
  
      # Windows has various names for x86_64 :(
      if platform_name == "windows":
          return "x86_64"
  
      # Check if gcc/clang supports SVE.
      if platform_name == "linux" and platform_machine == "aarch64":
          if self.check_compiler_arch(
              "armv8-a+sve"
          ) and self.check_header("arm_sve.h"):
              return "arm64"
          else:
              return "arm64_no_sve"
  
      # Unknown CPU architecture.
      if platform_machine != "x86_64":
          return "generic"
  
      # Linux/Darwin x86_64
      # Try to detect which compiler flags are supported
      supports_znver1 = self.check_compiler_arch("znver1")
      supports_znver2 = self.check_compiler_arch("znver2")
      supports_znver3 = self.check_compiler_arch("znver3")
      supports_skx = self.check_compiler_arch("skylake-avx512")
  
      if supports_znver3 and supports_skx:
          return "x86_64"
      elif supports_znver2 and supports_skx:
          return "x86_64_no_zen3"
      elif supports_znver1 and supports_skx:
          return "x86_64_no_zen2"
      elif not supports_znver1 or not supports_skx:
          return "x86_64_no_skx"
      else:
          return "generic"
  
imports: import shutil
  import os
  from setuptools import Extension, setup
  import contextlib
  import io
  import os.path
  import json
  import tempfile
  from setuptools.command.build_ext import build_ext, new_compiler
  from Cython.Build import cythonize
  import subprocess
  import sys
  import platform
  import numpy
label_desc: Use image node_id 2 for calling the ExtensionBuilder obj's underlying member method code with example usage: obj.get_arch_name(platform_name) and returns: os, PLATFORM_TO_ARCH, str, str, str, str, str, str, str, str, str