code: def test_stats_boost_ufunc(func, args, expected):
      type_sigs = func.types
      type_chars = [sig.split("->")[-1] for sig in type_sigs]
      for type_char in type_chars:
          typ, rtol = type_char_to_type_tol[type_char]
          args = [typ(arg) for arg in args]
          # Harmless overflow warnings are a "feature" of some wrappers on some
          # platforms. This test is about dtype and accuracy, so let's avoid false
          # test failures cause by these warnings. See gh-17432.
          with np.errstate(over="ignore"):
              value = func(*args)
          assert isinstance(value, typ)
          assert_allclose(value, expected, rtol=rtol)
  
imports: import pytest
  import numpy
  from numpy.testing import assert_allclose
  from scipy.stats import _boost
label_desc: Use image node_id 1 for calling a global function with example usage: test_stats_boost_ufunc(func, args, expected) without return types