code: def _is_linux_armhf() -> bool:
      # hard-float ABI can be detected from the ELF header of the running
      # process
      # https://static.docs.arm.com/ihi0044/g/aaelf32.pdf
      elf_header = _get_elf_header()
      if elf_header is None:
          return False
      result = elf_header.e_ident_class == elf_header.ELFCLASS32
      result &= elf_header.e_ident_data == elf_header.ELFDATA2LSB
      result &= elf_header.e_machine == elf_header.EM_ARM
      result &= (
          elf_header.e_flags & elf_header.EF_ARM_ABIMASK
      ) == elf_header.EF_ARM_ABI_VER5
      result &= (
          elf_header.e_flags & elf_header.EF_ARM_ABI_FLOAT_HARD
      ) == elf_header.EF_ARM_ABI_FLOAT_HARD
      return result
  
imports: import collections
  import functools
  import os
  import re
  import struct
  import sys
  import warnings
  from typing import IO, Dict, Iterator, NamedTuple, Optional, Tuple
label_desc: Use image node_id 2 for calling a global function with example usage: _is_linux_armhf() and returns: result, False