code: def test_real_dispatch():
      x = np.logspace(-10, 10) + 0.5
      dataset = np.vstack((x, gammaln(x))).T
  
      FuncData(loggamma, dataset, 0, 1, rtol=1e-14, atol=1e-14).check()
      assert_(loggamma(0) == np.inf)
      assert_(np.isnan(loggamma(-1)))
  
file_path: scipy/scipy/special/tests/test_loggamma.py
imports: import numpy
  from numpy.testing import assert_allclose, assert_
  from scipy.special._testutils import FuncData
  from scipy.special import gamma, gammaln, loggamma
label_desc: Use image node_id 4 for calling a global function with example usage: test_real_dispatch() without return types