code: def test_inverse_deriv2():
      # Check second derivative of inverse link using numeric differentiation.
  
      np.random.seed(24235)
  
      for link in LinksISD:
          for k in range(10):
              z = get_domainvalue(link)
              d2 = link.inverse_deriv2(z)
              d2a = nd.approx_fprime(np.r_[z], link.inverse_deriv)
              assert_allclose(
                  d2, d2a, rtol=5e-6, atol=1e-6, err_msg=str(link)
              )
  
file_path: statsmodels/statsmodels/genmod/families/tests/test_link.py
imports: import numpy
  from numpy.testing import assert_allclose, assert_equal, assert_array_less
  from scipy import stats
  import pytest
  import statsmodels.genmod.families
  from statsmodels.tools import numdiff
label_desc: Use image node_id 6 for calling a global function with example usage: test_inverse_deriv2() without return types