code: def test_nan_inf():
      def f_nan(x):
          return np.nan
  
      def f_inf(x):
          return np.inf if x < 0.1 else 1 / x
  
      res, err, info = quad_vec(f_nan, 0, 1, full_output=True)
      assert info.status == 3
  
      res, err, info = quad_vec(f_inf, 0, 1, full_output=True)
      assert info.status == 3
  
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 10 for calling a global function with example usage: test_nan_inf() and returns: np, unknown