code: def test_link_func_mlogit():
      predictions = np.array(
          [
              [0.25, 0.625, 0.125],
              [0.5, 0.25, 1.25],
              [0.0, 0.0, 1.0],
              [1.0, 0.0, 0.0],
              [1.0, np.nan, 0.0],
          ]
      )
      expected = np.array(
          [
              [-0.9162907, 0.0, -1.6094379],
              [-0.9162907, -1.6094379, 0.0],
              [-np.inf, -np.inf, 0],
              [0, -np.inf, -np.inf],
              [np.nan, np.nan, np.nan],
          ]
      )
      result = link_func(predictions, "mlogit")
      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 23 for calling a global function with example usage: test_link_func_mlogit() without return types