code: def test_non_standard_params(func, xp):
      if xp.__name__ != "numpy":
          x = xp.asarray([1, 2, 3])
          # func(x) should not raise an exception
          func(x)
          assert_raises(ValueError, func, x, workers=2)
  
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 4 for calling a global function with example usage: test_non_standard_params(func, xp) without return types