code: def _get_ufuncs():
      ufuncs = []
      ufunc_names = []
      for name in sorted(sc.__dict__):
          obj = sc.__dict__[name]
          if not isinstance(obj, np.ufunc):
              continue
          msg = KNOWNFAILURES.get(obj)
          if msg is None:
              ufuncs.append(obj)
              ufunc_names.append(name)
          else:
              fail = pytest.mark.xfail(run=False, reason=msg)
              ufuncs.append(pytest.param(obj, marks=fail))
              ufunc_names.append(name)
      return ufuncs, ufunc_names
  
file_path: scipy/scipy/special/tests/test_nan_inputs.py
imports: from typing import Callable
  import numpy
  from numpy.testing import assert_array_equal, assert_, suppress_warnings
  import pytest
  import scipy.special
label_desc: Use image node_id 1 for calling a global function with example usage: _get_ufuncs() and returns: ufuncs,  ufunc_names