def _os_supports_avx():
    if (not sys.platform.startswith('linux')
        or platform.machine() not in ('i386', 'i586', 'i686', 'x86_64')):
        return True
    # Executing the CPUID instruction may report AVX available even though
    # the kernel doesn't support it, so parse /proc/cpuinfo instead.
    try:
        f = open('/proc/cpuinfo', 'r')
    except OSError:
        # If /proc isn't available, assume yes
        return True
    with f:
        for line in f:
            head, _, body = line.partition(':')
            if head.strip() == 'flags' and 'avx' in body.split():
                return True
        else:
            return False
Test saving an ``Element`` in different ways.
dataset/ETHPy150Open numba/numba/numba/config.py/_os_supports_avx--crossover with--dataset/ETHPy150Open transcode-de/durga/tests/test_element.py/test_save