code: def test_runtime_info():
      info = pa.runtime_info()
      assert isinstance(info, pa.RuntimeInfo)
      possible_simd_levels = ("none", "sse4_2", "avx", "avx2", "avx512")
      assert info.simd_level in possible_simd_levels
      assert info.detected_simd_level in possible_simd_levels
  
      if info.simd_level != "none":
          env = os.environ.copy()
          env["ARROW_USER_SIMD_LEVEL"] = "none"
          code = f"""if 1:
              import pyarrow as pa
  
              info = pa.runtime_info()
              assert info.simd_level == 'none', info.simd_level
              assert info.detected_simd_level == {info.detected_simd_level!r},\
                  info.detected_simd_level
              """
          subprocess.check_call([sys.executable, "-c", code], env=env)
  
file_path: arrow/python/pyarrow/tests/test_misc.py
imports: import os
  import subprocess
  import sys
  import pytest
  import pyarrow
  from pyarrow.lib import ArrowInvalid
label_desc: Use image node_id 7 for calling a global function with example usage: test_runtime_info() without return types