code: def test_multiprocess(func):
      # Test that fft still works after fork (gh-10422)
  
      with multiprocessing.Pool(2) as p:
          res = p.map(func, [np.ones(100) for _ in range(4)])
  
      expect = func(np.ones(100))
      for x in res:
          assert_allclose(x, expect)
  
imports: import queue
  import threading
  import multiprocessing
  import numpy
  import pytest
  from numpy.random import random
  from numpy.testing import assert_array_almost_equal, assert_allclose
  from pytest import raises
  import scipy.fft
  from scipy.conftest import array_api_compatible, skip_if_array_api_backend
  from scipy._lib._array_api import array_namespace, size, xp_assert_close, xp_assert_equal
label_desc: Use image node_id 3 for calling a global function with example usage: test_multiprocess(func) without return types