code: def install_temp(tmpdir_factory):
      # Based in part on test_cython from random.tests.test_extending
      if IS_WASM:
          pytest.skip("No subprocess")
  
      srcdir = os.path.join(
          os.path.dirname(__file__), "examples", "limited_api"
      )
      build_dir = tmpdir_factory.mktemp("limited_api") / "build"
      os.makedirs(build_dir, exist_ok=True)
      try:
          subprocess.check_call(["meson", "--version"])
      except FileNotFoundError:
          pytest.skip("No usable 'meson' found")
      if sys.platform == "win32":
          subprocess.check_call(
              [
                  "meson",
                  "setup",
                  "--buildtype=release",
                  "--vsenv",
                  str(srcdir),
              ],
              cwd=build_dir,
          )
      else:
          subprocess.check_call(
              ["meson", "setup", str(srcdir)], cwd=build_dir
          )
      try:
          subprocess.check_call(
              ["meson", "compile", "-vv"], cwd=build_dir
          )
      except subprocess.CalledProcessError as p:
          print(f"{p.stdout=}")
          print(f"{p.stderr=}")
          raise
  
      sys.path.append(str(build_dir))
  
file_path: numpy/numpy/_core/tests/test_limited_api.py
imports: import os
  import shutil
  import subprocess
  import sys
  import sysconfig
  import pytest
  from numpy.testing import IS_WASM, IS_PYPY
label_desc: Use image node_id 1 for calling a global function with example usage: install_temp(tmpdir_factory) without return types