code: def _have_compatible_abi(
      executable: str, archs: Sequence[str]
  ) -> bool:
      if "armv7l" in archs:
          return _is_linux_armhf(executable)
      if "i686" in archs:
          return _is_linux_i686(executable)
      allowed_archs = {
          "x86_64",
          "aarch64",
          "ppc64",
          "ppc64le",
          "s390x",
          "loongarch64",
      }
      return any(arch in allowed_archs for arch in archs)
  
imports: import collections
  import contextlib
  import functools
  import os
  import re
  import sys
  import warnings
  from typing import Dict, Generator, Iterator, NamedTuple, Optional, Sequence, Tuple
  from ._elffile import EIClass, EIData, ELFFile, EMachine
label_desc: Use image node_id 4 for calling a global function with example usage: _have_compatible_abi(executable, archs) and returns: any, _is_linux_armhf, _is_linux_i686