code: def test_quad_vec_args():
      def f(x, a):
          return x * (x + a) * np.arange(3)
  
      a = 2
      exact = np.array([0, 4 / 3, 8 / 3])
  
      res, err = quad_vec(f, 0, 1, args=(a,))
      assert_allclose(res, exact, rtol=0, atol=1e-4)
  
file_path: scipy/scipy/integrate/tests/test__quad_vec.py
imports: import pytest
  import numpy
  from numpy.testing import assert_allclose
  from scipy.integrate import quad_vec
  from multiprocessing.dummy import Pool
label_desc: Use image node_id 3 for calling a global function with example usage: test_quad_vec_args() and returns: unknown