code: def test_inv_link_log():
      scores = np.array(
          [-np.inf, -999.0, -1.0, 0.0, 1.0, 2.0, 999.0, np.inf, np.nan]
      )
      expected = np.array(
          [
              0.0,
              0.0,
              1 / np.exp(1),
              1.0,
              np.exp(1),
              np.exp(2),
              np.inf,
              np.inf,
              np.nan,
          ]
      )
      result = inv_link(scores, "log")
      np.testing.assert_almost_equal(result, expected)
  
imports: import numpy
  import pytest
  from interpret.utils import link_func, inv_link
label_desc: Use image node_id 34 for calling a global function with example usage: test_inv_link_log() without return types